private void InitializeComponent() { this.cmbDateType = new ComboBox(); this.txtDate1 = new GKUI.Components.GKDateBox(); this.txtDate2 = new GKUI.Components.GKDateBox(); this.cmbDate1Calendar = new ComboBox(); this.cmbDate2Calendar = new ComboBox(); this.chkBC2 = new CheckBox(); this.chkBC1 = new CheckBox(); this.SuspendLayout(); this.cmbDateType.ReadOnly = true; this.cmbDateType.SelectedIndexChanged += cmbDateType_SelectedIndexChanged; this.txtDate1.AllowDrop = true; this.txtDate1.DragOver += txtDateX_DragOver; this.txtDate1.DragDrop += txtDateX_DragDrop; this.txtDate2.AllowDrop = true; this.txtDate2.DragOver += txtDateX_DragOver; this.txtDate2.DragDrop += txtDateX_DragDrop; this.cmbDate1Calendar.ReadOnly = true; this.cmbDate2Calendar.ReadOnly = true; this.chkBC2.Text = "BC"; this.chkBC1.Text = "BC"; Content = new TableLayout { Padding = new Padding(0), Spacing = new Size(10, 10), Rows = { new TableRow { Cells = { cmbDateType,txtDate1, txtDate2 } }, new TableRow { Cells = { null, TableLayout.Horizontal(10, cmbDate1Calendar, chkBC1), TableLayout.Horizontal(10, cmbDate2Calendar, chkBC2) } }, } }; this.ResumeLayout(); }
private void InitializeComponent() { this.cmbDateType = new System.Windows.Forms.ComboBox(); this.txtDate1 = new GKUI.Components.GKDateBox(); this.txtDate2 = new GKUI.Components.GKDateBox(); this.cmbDate1Calendar = new System.Windows.Forms.ComboBox(); this.cmbDate2Calendar = new System.Windows.Forms.ComboBox(); this.chkBC2 = new System.Windows.Forms.CheckBox(); this.chkBC1 = new System.Windows.Forms.CheckBox(); this.SuspendLayout(); // // cmbDateType // this.cmbDateType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbDateType.Location = new System.Drawing.Point(2, 2); this.cmbDateType.Name = "cmbDateType"; this.cmbDateType.Size = new System.Drawing.Size(135, 25); this.cmbDateType.TabIndex = 1; this.cmbDateType.SelectedIndexChanged += cmbDateType_SelectedIndexChanged; // // txtDate1 // this.txtDate1.AllowDrop = true; this.txtDate1.BackColor = System.Drawing.SystemColors.Window; this.txtDate1.Culture = new System.Globalization.CultureInfo(""); this.txtDate1.Location = new System.Drawing.Point(145, 2); this.txtDate1.Mask = "00/00/0000"; this.txtDate1.Name = "txtDate1"; this.txtDate1.NormalizeDate = "__.__.____"; this.txtDate1.Size = new System.Drawing.Size(158, 24); this.txtDate1.TabIndex = 2; this.txtDate1.TextMaskFormat = System.Windows.Forms.MaskFormat.IncludePromptAndLiterals; this.txtDate1.DragOver += txtDateX_DragOver; this.txtDate1.DragDrop += txtDateX_DragDrop; // // txtDate2 // this.txtDate2.AllowDrop = true; this.txtDate2.Culture = new System.Globalization.CultureInfo(""); this.txtDate2.Location = new System.Drawing.Point(313, 2); this.txtDate2.Mask = "00/00/0000"; this.txtDate2.Name = "txtDate2"; this.txtDate2.NormalizeDate = "__.__.____"; this.txtDate2.Size = new System.Drawing.Size(158, 24); this.txtDate2.TabIndex = 3; this.txtDate2.TextMaskFormat = System.Windows.Forms.MaskFormat.IncludePromptAndLiterals; this.txtDate2.DragOver += txtDateX_DragOver; this.txtDate2.DragDrop += txtDateX_DragDrop; // // cmbDate1Calendar // this.cmbDate1Calendar.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbDate1Calendar.Location = new System.Drawing.Point(145, 33); this.cmbDate1Calendar.Name = "cmbDate1Calendar"; this.cmbDate1Calendar.Size = new System.Drawing.Size(107, 25); this.cmbDate1Calendar.TabIndex = 4; // // cmbDate2Calendar // this.cmbDate2Calendar.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbDate2Calendar.Location = new System.Drawing.Point(313, 33); this.cmbDate2Calendar.Name = "cmbDate2Calendar"; this.cmbDate2Calendar.Size = new System.Drawing.Size(107, 25); this.cmbDate2Calendar.TabIndex = 6; // // chkBC2 // this.chkBC2.AutoSize = true; this.chkBC2.Location = new System.Drawing.Point(427, 33); this.chkBC2.Name = "chkBC2"; this.chkBC2.Size = new System.Drawing.Size(47, 21); this.chkBC2.TabIndex = 7; this.chkBC2.Text = "BC"; this.chkBC2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkBC2.UseVisualStyleBackColor = true; // // chkBC1 // this.chkBC1.AutoSize = true; this.chkBC1.Location = new System.Drawing.Point(259, 33); this.chkBC1.Name = "chkBC1"; this.chkBC1.Size = new System.Drawing.Size(47, 21); this.chkBC1.TabIndex = 5; this.chkBC1.Text = "BC"; this.chkBC1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.chkBC1.UseVisualStyleBackColor = true; // // GKDateControl // this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.chkBC2); this.Controls.Add(this.chkBC1); this.Controls.Add(this.cmbDate1Calendar); this.Controls.Add(this.cmbDate2Calendar); this.Controls.Add(this.txtDate1); this.Controls.Add(this.txtDate2); this.Controls.Add(this.cmbDateType); this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.Name = "GKDateControl"; this.Size = new System.Drawing.Size(473, 62); this.ResumeLayout(false); this.PerformLayout(); }