• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.MonthCalendar类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.MonthCalendar的典型用法代码示例。如果您正苦于以下问题:C# MonthCalendar类的具体用法?C# MonthCalendar怎么用?C# MonthCalendar使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MonthCalendar类属于System.Windows.Forms命名空间,在下文中一共展示了MonthCalendar类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: InitializeComponent

 private void InitializeComponent()
 {
     this.monthCalendar = new System.Windows.Forms.MonthCalendar();
     this.btnMakeReport = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // monthCalendar
     //
     this.monthCalendar.Location = new System.Drawing.Point(16, 0);
     this.monthCalendar.Name = "monthCalendar";
     this.monthCalendar.ShowTodayCircle = false;
     this.monthCalendar.TabIndex = 0;
     //
     // btnMakeReport
     //
     this.btnMakeReport.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.btnMakeReport.Location = new System.Drawing.Point(72, 168);
     this.btnMakeReport.Name = "btnMakeReport";
     this.btnMakeReport.Size = new System.Drawing.Size(88, 32);
     this.btnMakeReport.TabIndex = 1;
     this.btnMakeReport.Text = "Make Report";
     //
     // frmDailyReport
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(226, 215);
     this.Controls.Add(this.btnMakeReport);
     this.Controls.Add(this.monthCalendar);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name = "frmDailyReport";
     this.Text = "Daily Report";
     this.ResumeLayout(false);
 }
开发者ID:esdkp,项目名称:esdkp,代码行数:33,代码来源:DailyReportDialog.cs


示例2: ExtDatetimePicker

        public ExtDatetimePicker()
        {
            InitializeComponent();

            _mc = new MonthCalendar{MaxSelectionCount = 1};
            _pch = new PopupControlHost(_mc);

            InitEvent();
            
            InitProperty();
        }
开发者ID:caocf,项目名称:workspace-kepler,代码行数:11,代码来源:ExtDatetimePicker.cs


示例3: MonthCalendarInitialization

 /// <summary>
 /// Создает контроллер MonthCalendar с заданными характеристиками
 /// </summary>
 private void MonthCalendarInitialization()
 {
     this.monthCalendar = new MonthCalendar();
     int X = (this.ClientSize.Width - this.monthCalendar.Width) / 2;
     int Y = (this.ClientSize.Height - this.monthCalendar.Height) / 2;
     this.monthCalendar.Location = new Point(X, Y);
     this.monthCalendar.ShowToday = true;
     this.monthCalendar.ShowTodayCircle = false;
     this.monthCalendar.ShowWeekNumbers = true;
     this.Controls.Add(this.monthCalendar);
 }
开发者ID:CodeLookBook,项目名称:C-sharp,代码行数:14,代码来源:MyForm.cs


示例4: Init

        public void Init()
        {
            db = new DataBase.DataBaseManagement("VetoPTArentir");
            // suppression de tout les objets du panel
            ModifyAppointementPanel.Controls.Clear();
            // titre
            title = new Label();
            title.Size = new Size(500, 30);
            title.Font = new Font("Arial", 20);
            title.Location = new Point(170, 20);
            title.Text = "Modifier rendez-vous";
            ModifyAppointementPanel.Controls.Add(title);
            // nom
            client = new ComboBox();
            client.Size = new Size(150, 30);
            client.Location = new Point(205, 100);
            client.Text = "Nom";
            client.SelectedIndexChanged += new EventHandler(Client_SelectedIndexChanged);
            ModifyAppointementPanel.Controls.Add(client);
            // animal
            animal = new ComboBox();
            animal.Size = new Size(150, 30);
            animal.Location = new Point(205, 130);
            animal.Text = "Animal";
            animal.SelectedIndexChanged += new EventHandler(Animal_SelectedIndexChanged);
            ModifyAppointementPanel.Controls.Add(animal);
            // Date
            calendar = new MonthCalendar();
            calendar.Location = new Point(165, 170);
            ModifyAppointementPanel.Controls.Add(calendar);
            // raison
            reason = new TextBox();
            reason.Size = new Size(150, 30);
            reason.Location = new Point(205, 350);
            reason.Text = "Objet du rendez-vous";
            ModifyAppointementPanel.Controls.Add(reason);
            // bouton confirmer
            confirmButton = new Button();
            confirmButton.Size = new Size(100, 30);
            confirmButton.Location = new Point(150, 400);
            confirmButton.Text = "Confirmer";
            ModifyAppointementPanel.Controls.Add(confirmButton);
            confirmButton.Click += new EventHandler(confirm_Click);
            // bouton annuler
            cancelButton = new Button();
            cancelButton.Size = new Size(100, 30);
            cancelButton.Location = new Point(310, 400);
            cancelButton.Text = "Annuler";
            ModifyAppointementPanel.Controls.Add(cancelButton);
            cancelButton.Click += new EventHandler(cancel_Click);

            completeClient();
        }
开发者ID:ArentirGit,项目名称:VetoPT,代码行数:53,代码来源:ModifyAppointment.cs


示例5: DateTimeCellEditor

		/// <summary>
		/// Initializes a new instance of the DateTimeCellEditor class with default settings
		/// </summary>
		public DateTimeCellEditor() : base()
		{
			this.calendar = new MonthCalendar();
			this.calendar.Location = new System.Drawing.Point(0, 0);
			this.calendar.MaxSelectionCount = 1;

			this.DropDown.Width = this.calendar.Width + 2;
			this.DropDown.Height = this.calendar.Height + 2;
			this.DropDown.Control = this.calendar;

			base.DropDownStyle = DropDownStyle.DropDownList;
		}
开发者ID:samuraitruong,项目名称:comitdownloader,代码行数:15,代码来源:DateTimeCellEditor.cs


示例6: SimDateSelect

  //-------------------------------------------------------------------------------------
  #region << Constructors >>
  public SimDateSelect() : base()
  {
   this.monthCalendar1 = new System.Windows.Forms.MonthCalendar();
   this.panel1 = new System.Windows.Forms.Panel();
   this.simLabel1 = new Sim.Controls.SimLabel();
   this.simPopupButton1 = new Sim.Controls.SimPopupButton();
   this.panelMain = new System.Windows.Forms.Panel();
   this.panelMain.SuspendLayout();
   this.panel1.SuspendLayout();
   // 
   // monthCalendar1
   // 
   this.monthCalendar1.Dock = System.Windows.Forms.DockStyle.Top;
   this.monthCalendar1.ShowToday = false;
   this.monthCalendar1.ShowTodayCircle = false;
   this.monthCalendar1.MaxSelectionCount = 1;
   this.monthCalendar1.DateSelected += new DateRangeEventHandler(monthCalendar1_DateSelected);
   // 
   // simLabel1
   // 
   this.simLabel1.AutoSize = false;
   this.simLabel1.Dock = System.Windows.Forms.DockStyle.Fill;
   this.simLabel1.Text = DateTime.Now.Date.ToString("dd.MM.yyyy");
   // 
   // simPopupButton1
   // 
   this.simPopupButton1.Dock = System.Windows.Forms.DockStyle.Right;
   this.simPopupButton1.Image = global::Sim.Controls.Properties.Resources.OK;
   this.simPopupButton1.Size = new System.Drawing.Size(21, 21);
   this.simPopupButton1.Click += new EventHandler(simPopupButton1_Click);
   // 
   // panel1
   // 
   this.panel1.Controls.Add(this.simLabel1);
   this.panel1.Controls.Add(this.simPopupButton1);
   this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
   this.panel1.Padding = new System.Windows.Forms.Padding(0, 0, 3, 0);
   this.panel1.Size = new System.Drawing.Size(315, 21);
   // 
   // panelMain
   // 
   this.panelMain.Controls.Add(this.panel1);
   this.panelMain.Controls.Add(this.monthCalendar1);
   this.panelMain.Padding = new System.Windows.Forms.Padding(0);
   this.panelMain.BackColor = System.Drawing.Color.Transparent;
   this.panel1.ResumeLayout();
   this.panelMain.ResumeLayout();
   this.panelMain.Size = new Size(monthCalendar1.Height-5, monthCalendar1.Height + panel1.Height-5);


   base.Control = panelMain;

  }
开发者ID:GoldMax,项目名称:Pulsar.NET,代码行数:55,代码来源:SimDateSelect.cs


示例7: CreateControl

        public static Control CreateControl(string ctrlName, string partialName)
        {
            try
            {
                Control ctrl;
                switch (ctrlName)
                {
                    case "Label":
                        ctrl = new Label();
                        break;
                    case "TextBox":
                        ctrl = new TextBox();
                        break;
                    case "PictureBox":
                        ctrl = new PictureBox();
                        break;
                    case "ListView":
                        ctrl = new ListView();
                        break;
                    case "ComboBox":
                        ctrl = new ComboBox();
                        break;
                    case "Button":
                        ctrl = new Button();
                        break;
                    case "CheckBox":
                        ctrl = new CheckBox();
                        break;
                    case "MonthCalender":
                        ctrl = new MonthCalendar();
                        break;
                    case "DateTimePicker":
                        ctrl = new DateTimePicker();
                        break;
                    default:
                        Assembly controlAsm = Assembly.LoadWithPartialName(partialName);
                        Type controlType = controlAsm.GetType(partialName + "." + ctrlName);
                        ctrl = (Control)Activator.CreateInstance(controlType);
                        break;

                }
                return ctrl;

            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine("create control failed:" + ex.Message);
                return new Control();
            }
        }
开发者ID:MuffPotter,项目名称:XamarinDesigner,代码行数:50,代码来源:ControlFactory.cs


示例8: Init

        public void Init()
        {
            db = new DataBase.DataBaseManagement("VetoPTArentir");
            animals = db.getAnimalsClient(code);

            // suppression de tout les objets du panel
            DisplayAppointmentsPanel.Controls.Clear();
            // titre
            title = new Label();
            title.Size = new Size(500, 30);
            title.Font = new Font("Arial", 20);
            title.Location = new Point(170, 20);
            title.Text = "Afficher rendez-vous";
            DisplayAppointmentsPanel.Controls.Add(title);
            // client
            client = new Label();
            client.Size = new Size(150, 30);
            client.Location = new Point(205, 100);
            client.Text = "Nom";
            DisplayAppointmentsPanel.Controls.Add(client);
            // animal
            animal = new ComboBox();
            animal.Size = new Size(150, 30);
            animal.Location = new Point(205, 130);
            animal.Text = "Animal";
            animal.SelectedIndexChanged += new EventHandler(animal_SelectedIndexChanged);
            DisplayAppointmentsPanel.Controls.Add(animal);
            // Date
            calendar = new MonthCalendar();
            calendar.Location = new Point(165, 170);
            DisplayAppointmentsPanel.Controls.Add(calendar);
            // raison
            reason = new Label();
            reason.Size = new Size(150, 30);
            reason.Location = new Point(205, 350);
            reason.Text = "Objet du rendez-vous";
            DisplayAppointmentsPanel.Controls.Add(reason);
            // bouton retour
            backButton = new Button();
            backButton.Size = new Size(100, 30);
            backButton.Location = new Point(205, 380);
            backButton.Text = "Retour";
            DisplayAppointmentsPanel.Controls.Add(backButton);
            backButton.Click += new EventHandler(back_Click);

            completeAnimals();
            clientData = db.detailsClient(code);
            client.Text = clientData.Split(':')[1] +" "+ clientData.Split(':')[2];
        }
开发者ID:ArentirGit,项目名称:VetoPT,代码行数:49,代码来源:DisplayAppointments.cs


示例9: OnDropDownButtonClick

 private void OnDropDownButtonClick(object sender, EventArgs e)
 {
     Parent.SuspendLayout();
     _monthCalendar = new MonthCalendar
                          {
                              Location =
                                  new Point(_dropButton.ClientRectangle.Left, _dropButton.ClientRectangle.Bottom)
                          };
     _monthCalendar.DateSelected += OnDateSelected;
     _monthCalendar.Location = new Point(_maskedTextBox.Location.X,
                                         _maskedTextBox.Location.Y + _maskedTextBox.Height);
     _monthCalendar.BringToFront();
     Parent.Controls.Add(_monthCalendar);
     Parent.ResumeLayout();
 }
开发者ID:gitter-badger,项目名称:UROCare,代码行数:15,代码来源:SHCPLDatePicker.cs


示例10: Init

 public void Init()
 {
     db = new DataBase.DataBaseManagement("VetoPTArentir");
     // suppression de tout les objets du panel
     AddLeavePeriodPanel.Controls.Clear();
     // titre
     title = new Label();
     title.Size = new Size(500, 30);
     title.Font = new Font("Arial", 20);
     title.Location = new Point(170, 20);
     title.Text = "Ajouter un client";
     AddLeavePeriodPanel.Controls.Add(title);
     // employee 
     employee = new ComboBox();
     employee.Size = new Size(100, 30);
     employee.Location = new Point(230, 100);
     employee.Text = "Employé";
     AddLeavePeriodPanel.Controls.Add(employee);
     // nb jours de congés 
     nbDays = new ComboBox();
     nbDays.Size = new Size(100, 30);
     nbDays.Location = new Point(230, 130);
     nbDays.Text = "Nombre de jours";
     AddLeavePeriodPanel.Controls.Add(nbDays);
     // Date
     calendar = new MonthCalendar();
     calendar.Location = new Point(165, 170);
     AddLeavePeriodPanel.Controls.Add(calendar);
     // bouton confirmer
     confirmButton = new Button();
     confirmButton.Size = new Size(100, 30);
     confirmButton.Location = new Point(150, 310);
     confirmButton.Text = "Confirmer";
     AddLeavePeriodPanel.Controls.Add(confirmButton);
     confirmButton.Click += new EventHandler(confirm_Click);
     // bouton annuler
     cancelButton = new Button();
     cancelButton.Size = new Size(100, 30);
     cancelButton.Location = new Point(310, 310);
     cancelButton.Text = "Annuler";
     AddLeavePeriodPanel.Controls.Add(cancelButton);
     cancelButton.Click += new EventHandler(cancel_Click);
 }
开发者ID:ArentirGit,项目名称:VetoPT,代码行数:43,代码来源:AddLeavePeriod.cs


示例11: PanelExtratoSalas

        public PanelExtratoSalas(Panel panel, MonthCalendar calendar)
        {
            InitializeComponent();
            this.mainPanel = panel;
            this.calendar = calendar;
            calendar.DateSelected += calendar_DateSelected;

            old = new Control[panel.Controls.Count];
            panel.Controls.CopyTo(this.old, 0);

            panel.Controls.Clear();
            panel.Controls.Add(this);

            this.Dock = DockStyle.Fill;
            isOpen = true;

            // Carrega lista de salas
            _salas = new Academia.Model.Bo.Salas.Model_Bo_Salas().ListaDeSalas();
            // Carregar dados automaticamente
            btMes.Checked = true;
            this.loadTabs();

        }
开发者ID:PablusVinii,项目名称:techgyn,代码行数:23,代码来源:PanelExtratoSalas.cs


示例12: EIBCalenderBase

        public EIBCalenderBase()
        {
            monthCalender = new MonthCalendar();
            monthCalender.Size = new Size(width, height);

            //dateTimePicker.CalendarForeColor = Color.White;
            monthCalender.Dock = DockStyle.Fill;
            this.Size = new Size(width, height);
            this._Width = width;
            this.Controls.Add(monthCalender);

            tpanel = new TransparentPanel();
            tpanel.Location = new Point(0, 0);
            tpanel.Size = new Size(width, height);
            tpanel.Dock = DockStyle.Fill;
            this.Controls.Add(tpanel);
            tpanel.BringToFront();
            tpanel.MouseClick += new MouseEventHandler(tpanel_MouseClick);
            tpanel.MouseDown += new MouseEventHandler(tpanel_MouseDown);
            tpanel.MouseMove += new MouseEventHandler(tpanel_MouseMove);
            tpanel.MouseUp += new MouseEventHandler(tpanel_MouseUp);

            this.Resize += new System.EventHandler(EIBDatePickerBase_Resize);

            if (string.IsNullOrEmpty(this.Name))
            {
                this.Name = "calender" + counter;
            }
            if (string.IsNullOrEmpty(this.ControlName))
            {
                this.ControlName = this.Name;
            }
            this.Margin = new Padding(0, 0, 0, 0);
            this.Font = SystemFonts.DefaultFont;
            this.Layout += new LayoutEventHandler(Control_Layout);
            this.SizeChanged += new System.EventHandler(Control_SizeChanged);
        }
开发者ID:harpreetoxyent,项目名称:pnl,代码行数:37,代码来源:EIBCalender.cs


示例13: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.monthCalendar1 = new System.Windows.Forms.MonthCalendar();
     this.SuspendLayout();
     //
     // monthCalendar1
     //
     this.monthCalendar1.Location = new System.Drawing.Point(0, 0);
     this.monthCalendar1.Name = "monthCalendar1";
     this.monthCalendar1.TabIndex = 0;
     this.monthCalendar1.DateSelected += new System.Windows.Forms.DateRangeEventHandler(this.monthCalendar1_DateSelected);
     //
     // sub
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(200, 152);
     this.Controls.Add(this.monthCalendar1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name = "sub";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
     this.Text = "sub";
     this.ResumeLayout(false);
 }
开发者ID:BackupTheBerlios,项目名称:aiomanager-svn,代码行数:28,代码来源:sub.cs


示例14: InitializeComponent

		private void InitializeComponent(){
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRpWriteoffSheet));
			this.date2 = new System.Windows.Forms.MonthCalendar();
			this.date1 = new System.Windows.Forms.MonthCalendar();
			this.labelTO = new System.Windows.Forms.Label();
			this.listProv = new System.Windows.Forms.ListBox();
			this.label1 = new System.Windows.Forms.Label();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.label5 = new System.Windows.Forms.Label();
			this.radioWriteoffProc = new System.Windows.Forms.RadioButton();
			this.radioWriteoffPay = new System.Windows.Forms.RadioButton();
			this.butCancel = new OpenDental.UI.Button();
			this.butOK = new OpenDental.UI.Button();
			this.checkAllProv = new System.Windows.Forms.CheckBox();
			this.checkAllClin = new System.Windows.Forms.CheckBox();
			this.listClin = new System.Windows.Forms.ListBox();
			this.labelClin = new System.Windows.Forms.Label();
			this.groupBox3.SuspendLayout();
			this.SuspendLayout();
			// 
			// date2
			// 
			this.date2.Location = new System.Drawing.Point(288,37);
			this.date2.Name = "date2";
			this.date2.TabIndex = 2;
			// 
			// date1
			// 
			this.date1.Location = new System.Drawing.Point(32,37);
			this.date1.Name = "date1";
			this.date1.TabIndex = 1;
			// 
			// labelTO
			// 
			this.labelTO.Location = new System.Drawing.Point(222,37);
			this.labelTO.Name = "labelTO";
			this.labelTO.Size = new System.Drawing.Size(51,23);
			this.labelTO.TabIndex = 28;
			this.labelTO.Text = "TO";
			this.labelTO.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// listProv
			// 
			this.listProv.Location = new System.Drawing.Point(534,54);
			this.listProv.Name = "listProv";
			this.listProv.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
			this.listProv.Size = new System.Drawing.Size(181,160);
			this.listProv.TabIndex = 36;
			this.listProv.Click += new System.EventHandler(this.listProv_Click);
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(532,18);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(104,16);
			this.label1.TabIndex = 35;
			this.label1.Text = "Providers";
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.label5);
			this.groupBox3.Controls.Add(this.radioWriteoffProc);
			this.groupBox3.Controls.Add(this.radioWriteoffPay);
			this.groupBox3.Location = new System.Drawing.Point(32,246);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(281,95);
			this.groupBox3.TabIndex = 47;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "Show Insurance Writeoffs";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(6,71);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(269,17);
			this.label5.TabIndex = 2;
			this.label5.Text = "(this is discussed in the PPO section of the manual)";
			// 
			// radioWriteoffProc
			// 
			this.radioWriteoffProc.CheckAlign = System.Drawing.ContentAlignment.TopLeft;
			this.radioWriteoffProc.Location = new System.Drawing.Point(9,41);
			this.radioWriteoffProc.Name = "radioWriteoffProc";
			this.radioWriteoffProc.Size = new System.Drawing.Size(244,23);
			this.radioWriteoffProc.TabIndex = 1;
			this.radioWriteoffProc.Text = "Using procedure date.";
			this.radioWriteoffProc.TextAlign = System.Drawing.ContentAlignment.TopLeft;
			this.radioWriteoffProc.UseVisualStyleBackColor = true;
			// 
			// radioWriteoffPay
			// 
			this.radioWriteoffPay.CheckAlign = System.Drawing.ContentAlignment.TopLeft;
			this.radioWriteoffPay.Checked = true;
			this.radioWriteoffPay.Location = new System.Drawing.Point(9,20);
			this.radioWriteoffPay.Name = "radioWriteoffPay";
			this.radioWriteoffPay.Size = new System.Drawing.Size(244,23);
			this.radioWriteoffPay.TabIndex = 0;
			this.radioWriteoffPay.TabStop = true;
			this.radioWriteoffPay.Text = "Using insurance payment date.";
			this.radioWriteoffPay.TextAlign = System.Drawing.ContentAlignment.TopLeft;
//.........这里部分代码省略.........
开发者ID:romeroyonatan,项目名称:opendental,代码行数:101,代码来源:FormRpWriteoffSheet.cs


示例15: InitializeComponent

		private void InitializeComponent(){
			this.components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormClaimsSend));
			this.label6 = new System.Windows.Forms.Label();
			this.contextMenuStatus = new System.Windows.Forms.ContextMenu();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.calendarTo = new System.Windows.Forms.MonthCalendar();
			this.calendarFrom = new System.Windows.Forms.MonthCalendar();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.panelSplitter = new System.Windows.Forms.Panel();
			this.panelHistory = new System.Windows.Forms.Panel();
			this.gridHistory = new OpenDental.UI.ODGrid();
			this.panel1 = new System.Windows.Forms.Panel();
			this.ToolBarHistory = new OpenDental.UI.ODToolBar();
			this.butDropTo = new OpenDental.UI.Button();
			this.butDropFrom = new OpenDental.UI.Button();
			this.textDateFrom = new OpenDental.ValidDate();
			this.textDateTo = new OpenDental.ValidDate();
			this.comboClinic = new System.Windows.Forms.ComboBox();
			this.labelClinic = new System.Windows.Forms.Label();
			this.gridMain = new OpenDental.UI.ODGrid();
			this.ToolBarMain = new OpenDental.UI.ODToolBar();
			this.contextMenuEclaims = new System.Windows.Forms.ContextMenu();
			this.comboCustomTracking = new System.Windows.Forms.ComboBox();
			this.labelCustomTracking = new System.Windows.Forms.Label();
			this.panelHistory.SuspendLayout();
			this.panel1.SuspendLayout();
			this.SuspendLayout();
			// 
			// label6
			// 
			this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
			this.label6.Location = new System.Drawing.Point(107, -44);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(112, 44);
			this.label6.TabIndex = 21;
			this.label6.Text = "Insurance Claims";
			this.label6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// imageList1
			// 
			this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			this.imageList1.Images.SetKeyName(0, "");
			this.imageList1.Images.SetKeyName(1, "");
			this.imageList1.Images.SetKeyName(2, "");
			this.imageList1.Images.SetKeyName(3, "");
			this.imageList1.Images.SetKeyName(4, "");
			this.imageList1.Images.SetKeyName(5, "");
			this.imageList1.Images.SetKeyName(6, "");
			// 
			// calendarTo
			// 
			this.calendarTo.Location = new System.Drawing.Point(196, 29);
			this.calendarTo.MaxSelectionCount = 1;
			this.calendarTo.Name = "calendarTo";
			this.calendarTo.TabIndex = 42;
			this.calendarTo.Visible = false;
			this.calendarTo.DateSelected += new System.Windows.Forms.DateRangeEventHandler(this.calendarTo_DateSelected);
			// 
			// calendarFrom
			// 
			this.calendarFrom.Location = new System.Drawing.Point(6, 29);
			this.calendarFrom.MaxSelectionCount = 1;
			this.calendarFrom.Name = "calendarFrom";
			this.calendarFrom.TabIndex = 39;
			this.calendarFrom.Visible = false;
			this.calendarFrom.DateSelected += new System.Windows.Forms.DateRangeEventHandler(this.calendarFrom_DateSelected);
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(196, 5);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(72, 18);
			this.label2.TabIndex = 36;
			this.label2.Text = "To";
			this.label2.TextAlign = System.Drawing.ContentAlignment.BottomRight;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(1, 5);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(75, 18);
			this.label1.TabIndex = 34;
			this.label1.Text = "From";
			this.label1.TextAlign = System.Drawing.ContentAlignment.BottomRight;
			// 
			// panelSplitter
			// 
			this.panelSplitter.Cursor = System.Windows.Forms.Cursors.SizeNS;
			this.panelSplitter.Location = new System.Drawing.Point(2, 398);
			this.panelSplitter.Name = "panelSplitter";
			this.panelSplitter.Size = new System.Drawing.Size(961, 6);
			this.panelSplitter.TabIndex = 50;
			this.panelSplitter.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panelSplitter_MouseDown);
			this.panelSplitter.MouseMove += new System.Windows.Forms.MouseEventHandler(this.panelSplitter_MouseMove);
			this.panelSplitter.MouseUp += new System.Windows.Forms.MouseEventHandler(this.panelSplitter_MouseUp);
			// 
			// panelHistory
//.........这里部分代码省略.........
开发者ID:romeroyonatan,项目名称:opendental,代码行数:101,代码来源:FormClaimsSend.cs


示例16: ShowPopUp

 void ShowPopUp()
 {
     if (!IsPopup)
     {
         MonthCalendar monthcalendar = new MonthCalendar();
         monthcalendar.Size = new Size(226, 160);
         monthcalendar.DateSelected += new DateRangeEventHandler(monthcalendar_DateSelected);
         monthcalendar.Location = new Point(this.txtTextInput.Location.X - 10, this.txtTextInput.Location.Y + 25);
         monthcalendar.Visible = true;
         gbxMainGroup.Controls.Add(monthcalendar);
         IsPopup = true;
     }
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:13,代码来源:InputDialog.cs


示例17:

 private void Diseño_Ventana()
 {
     #region Creando controles
     this.bttn_Consultar = new System.Windows.Forms.Button();
     this.lbl_Titulo = new System.Windows.Forms.Label();
     this.lbl_Apartir = new System.Windows.Forms.Label();
     this.lbl_Hasta = new System.Windows.Forms.Label();
     this.monthCalendar_Muestra = new System.Windows.Forms.MonthCalendar();
     this.dateTimePicker_Apartir = new System.Windows.Forms.DateTimePicker();
     this.dateTimePicker_Hasta = new System.Windows.Forms.DateTimePicker();
     this.picture_Imagen = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.picture_Imagen)).BeginInit();
     this.SuspendLayout();
     #endregion
     #region Diseñando controles
     //
     // bttn_Consultar
     //
     this.bttn_Consultar.Location = new System.Drawing.Point(377, 103);
     this.bttn_Consultar.Name = "bttn_Consultar";
     this.bttn_Consultar.Size = new System.Drawing.Size(75, 23);
     this.bttn_Consultar.TabIndex = 0;
     this.bttn_Consultar.Text = "Consultar";
     this.bttn_Consultar.UseVisualStyleBackColor = true;
     this.bttn_Consultar.Click += new System.EventHandler(this.bttn_Consultar_Click);
     //
     // lbl_Titulo
     //
     this.lbl_Titulo.AutoSize = true;
     this.lbl_Titulo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbl_Titulo.Location = new System.Drawing.Point(64, 34);
     this.lbl_Titulo.Name = "lbl_Titulo";
     this.lbl_Titulo.Size = new System.Drawing.Size(221, 13);
     this.lbl_Titulo.TabIndex = 1;
     this.lbl_Titulo.Text = "Seleccione el periodo de la busqueda";
     //
     // lbl_Apartir
     //
     this.lbl_Apartir.AutoSize = true;
     this.lbl_Apartir.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbl_Apartir.Location = new System.Drawing.Point(64, 72);
     this.lbl_Apartir.Name = "lbl_Apartir";
     this.lbl_Apartir.Size = new System.Drawing.Size(44, 13);
     this.lbl_Apartir.TabIndex = 2;
     this.lbl_Apartir.Text = "Apartir";
     //
     // lbl_Hasta
     //
     this.lbl_Hasta.AutoSize = true;
     this.lbl_Hasta.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbl_Hasta.Location = new System.Drawing.Point(64, 108);
     this.lbl_Hasta.Name = "lbl_Hasta";
     this.lbl_Hasta.Size = new System.Drawing.Size(40, 13);
     this.lbl_Hasta.TabIndex = 3;
     this.lbl_Hasta.Text = "Hasta";
     //
     // monthCalendar_Muestra
     //
     this.monthCalendar_Muestra.Location = new System.Drawing.Point(131, 162);
     this.monthCalendar_Muestra.Name = "monthCalendar_Muestra";
     this.monthCalendar_Muestra.TabIndex = 4;
     //
     // dateTimePicker_Apartir
     //
     this.dateTimePicker_Apartir.Location = new System.Drawing.Point(131, 65);
     this.dateTimePicker_Apartir.Name = "dateTimePicker_Apartir";
     this.dateTimePicker_Apartir.Size = new System.Drawing.Size(200, 20);
     this.dateTimePicker_Apartir.TabIndex = 5;
     //
     // dateTimePicker_Hasta
     //
     this.dateTimePicker_Hasta.Location = new System.Drawing.Point(131, 102);
     this.dateTimePicker_Hasta.Name = "dateTimePicker_Hasta";
     this.dateTimePicker_Hasta.Size = new System.Drawing.Size(200, 20);
     this.dateTimePicker_Hasta.TabIndex = 6;
     //
     // picture_Imagen
     //
     this.picture_Imagen.BackgroundImage = global::Sistema_Shajobe.Properties.Resources.Reportes;
     this.picture_Imagen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.picture_Imagen.Location = new System.Drawing.Point(19, 162);
     this.picture_Imagen.Name = "picture_Imagen";
     this.picture_Imagen.Size = new System.Drawing.Size(89, 66);
     this.picture_Imagen.TabIndex = 7;
     this.picture_Imagen.TabStop = false;
     //
     // Reportes
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(228)))), ((int)(((byte)(196)))));
     this.ClientSize = new System.Drawing.Size(470, 343);
     this.Controls.Add(this.picture_Imagen);
     this.Controls.Add(this.dateTimePicker_Hasta);
     this.Controls.Add(this.dateTimePicker_Apartir);
     this.Controls.Add(this.monthCalendar_Muestra);
     this.Controls.Add(this.lbl_Hasta);
     this.Controls.Add(this.lbl_Apartir);
     this.Controls.Add(this.lbl_Titulo);
     this.Controls.Add(this.bttn_Consultar);
//.........这里部分代码省略.........
开发者ID:josericardo-ac,项目名称:Titulacion,代码行数:101,代码来源:Busqueda+de+Gastos+de+Inventario.cs


示例18: DrawMonthCalendarButton

		// draws the pervious or next button
		private void DrawMonthCalendarButton (Graphics dc, Rectangle rectangle, MonthCalendar mc, Size title_size, int x_offset, Size button_size, bool is_previous) 
		{
			const int arrow_width = 4;
			const int arrow_height = 7;

			bool is_clicked = false;
			Rectangle button_rect;
			PointF arrow_center;
			PointF [] arrow_path = new PointF [3];
			
			// prepare the button
			if (is_previous) 
			{
				is_clicked = mc.is_previous_clicked;

				button_rect = new Rectangle (
					rectangle.X + 1 + x_offset,
					rectangle.Y + 1 + ((title_size.Height - button_size.Height)/2),
					Math.Max(button_size.Width - 1, 0),
					Math.Max(button_size.Height - 1, 0));

				arrow_center = new PointF (button_rect.X + ((button_rect.Width + arrow_width) / 2.0f), 
											rectangle.Y + ((button_rect.Height + arrow_height) / 2) + 1);
				if (is_clicked) {
					arrow_center.X += 1;
					arrow_center.Y += 1;
				}

				arrow_path [0].X = arrow_center.X;
				arrow_path [0].Y = arrow_center.Y - arrow_height / 2.0f + 0.5f;
				arrow_path [1].X = arrow_center.X;
				arrow_path [1].Y = arrow_center.Y + arrow_height / 2.0f + 0.5f;
				arrow_path [2].X = arrow_center.X - arrow_width;
				arrow_path [2].Y = arrow_center.Y + 0.5f;
			}
			else
			{
				is_clicked = mc.is_next_clicked;

				button_rect = new Rectangle (
					rectangle.Right - 1 - x_offset - button_size.Width,
					rectangle.Y + 1 + ((title_size.Height - button_size.Height)/2),
					Math.Max(button_size.Width - 1, 0),
					Math.Max(button_size.Height - 1, 0));

				arrow_center = new PointF (button_rect.X + ((button_rect.Width + arrow_width) / 2.0f), 
											rectangle.Y + ((button_rect.Height + arrow_height) / 2) + 1);
				if (is_clicked) {
					arrow_center.X += 1;
					arrow_center.Y += 1;
				}

				arrow_path [0].X = arrow_center.X - arrow_width;
				arrow_path [0].Y = arrow_center.Y - arrow_height / 2.0f + 0.5f;
				arrow_path [1].X = arrow_center.X - arrow_width;
				arrow_path [1].Y = arrow_center.Y + arrow_height / 2.0f + 0.5f;
				arrow_path [2].X = arrow_center.X;
				arrow_path [2].Y = arrow_center.Y + 0.5f;
			}

			// fill the background
			dc.FillRectangle (SystemBrushes.Control, button_rect);
			// draw the border
			if (is_clicked) {
				dc.DrawRectangle (SystemPens.ControlDark, button_rect);
			}
			else {
				CPDrawBorder3D (dc, button_rect, Border3DStyle.Raised, Border3DSide.Left | Border3DSide.Right | Border3DSide.Top | Border3DSide.Bottom);
			}
			// draw the arrow
			dc.FillPolygon (SystemBrushes.ControlText, arrow_path);			
			//dc.FillPolygon (SystemBrushes.ControlText, arrow_path, FillMode.Winding);
		}
开发者ID:ngraziano,项目名称:mono,代码行数:74,代码来源:ThemeWin32Classic.cs


示例19: DrawMonthCalendar

		// draw the month calendar
		public override void DrawMonthCalendar(Graphics dc, Rectangle clip_rectangle, MonthCalendar mc) 
		{
			Rectangle client_rectangle = mc.ClientRectangle;
			Size month_size = mc.SingleMonthSize;
			// cache local copies of Marshal-by-ref internal members (gets around error CS0197)
			Size calendar_spacing = (Size)((object)mc.calendar_spacing);
			Size date_cell_size = (Size)((object)mc.date_cell_size);
			
			// draw the singlecalendars
			int x_offset = 1;
			int y_offset = 1;
			// adjust for the position of the specific month
			for (int i=0; i < mc.CalendarDimensions.Height; i++) 
			{
				if (i > 0) 
				{
					y_offset += month_size.Height + calendar_spacing.Height;
				}
				// now adjust for x position	
				for (int j=0; j < mc.CalendarDimensions.Width; j++) 
				{
					if (j > 0) 
					{
						x_offset += month_size.Width + calendar_spacing.Width;
					} 
					else 
					{
						x_offset = 1;
					}

					Rectangle month_rect = new Rectangle (x_offset, y_offset, month_size.Width, month_size.Height);
					if (month_rect.IntersectsWith (clip_rectangle)) {
						DrawSingleMonth (
							dc,
							clip_rectangle,
							month_rect,
							mc,
							i,
							j);
					}
				}
			}
			
			Rectangle bottom_rect = new Rectangle (
						client_rectangle.X,
						Math.Max(client_rectangle.Bottom - date_cell_size.Height - 3, 0),
						client_rectangle.Width,
						date_cell_size.Height + 2);
			// draw the today date if it's set
			if (mc.ShowToday && bottom_rect.IntersectsWith (clip_rectangle)) 
			{
				dc.FillRectangle (GetControlBackBrush (mc.BackColor), bottom_rect);
				if (mc.ShowToday) {
					int today_offset = 5;
					if (mc.ShowTodayCircle) 
					{
						Rectangle today_circle_rect = new Rectangle (
							client_rectangle.X + 5,
							Math.Max(client_rectangle.Bottom - date_cell_size.Height - 2, 0),
							date_cell_size.Width,
							date_cell_size.Height);
							DrawTodayCircle (dc, today_circle_rect);
						today_offset += date_cell_size.Width + 5;
					}
					// draw today's date
					StringFormat text_format = new StringFormat();
					text_format.LineAlignment = StringAlignment.Center;
					text_format.Alignment = StringAlignment.Near;
					Rectangle today_rect = new Rectangle (
							today_offset + client_rectangle.X,
							Math.Max(client_rectangle.Bottom - date_cell_size.Height, 0),
							Math.Max(client_rectangle.Width - today_offset, 0),
							date_cell_size.Height);
					dc.DrawString ("Today: " + DateTime.Now.ToShortDateString(), mc.bold_font, GetControlForeBrush (mc.ForeColor), today_rect, text_format);
					text_format.Dispose ();
				}				
			}
			
			Brush border_brush;
			
			if (mc.owner == null)
				border_brush = GetControlBackBrush (mc.BackColor);
			else
				border_brush = SystemBrushes.ControlDarkDark;
				
			// finally paint the borders of the calendars as required
			for (int i = 0; i <= mc.CalendarDimensions.Width; i++) {
				if (i == 0 && clip_rectangle.X == client_rectangle.X) {
					dc.FillRectangle (border_brush, client_rectangle.X, client_rectangle.Y, 1, client_rectangle.Height);
				} else if (i == mc.CalendarDimensions.Width && clip_rectangle.Right == client_rectangle.Right) {
					dc.FillRectangle (border_brush, client_rectangle.Right - 1, client_rectangle.Y, 1, client_rectangle.Height);
				} else { 
					Rectangle rect = new Rectangle (
						client_rectangle.X + (month_size.Width*i) + (calendar_spacing.Width * (i-1)) + 1, 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.MouseEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Forms.Message类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap