diff --git a/Bin/SunnyUI.dll b/Bin/SunnyUI.dll index c0971255..82bf4234 100644 Binary files a/Bin/SunnyUI.dll and b/Bin/SunnyUI.dll differ diff --git a/Bin/SunnyUI.pdb b/Bin/SunnyUI.pdb index 346183f3..4b2cee12 100644 Binary files a/Bin/SunnyUI.pdb and b/Bin/SunnyUI.pdb differ diff --git a/SunnyUI.Demo/Bin/SunnyUI.Demo.exe b/SunnyUI.Demo/Bin/SunnyUI.Demo.exe index f12da415..1a55ebee 100644 Binary files a/SunnyUI.Demo/Bin/SunnyUI.Demo.exe and b/SunnyUI.Demo/Bin/SunnyUI.Demo.exe differ diff --git a/SunnyUI.Demo/Bin/SunnyUI.dll b/SunnyUI.Demo/Bin/SunnyUI.dll index c0971255..82bf4234 100644 Binary files a/SunnyUI.Demo/Bin/SunnyUI.dll and b/SunnyUI.Demo/Bin/SunnyUI.dll differ diff --git a/SunnyUI.Demo/Controls/FTextBox.Designer.cs b/SunnyUI.Demo/Controls/FTextBox.Designer.cs index f65c3e08..6f0f56d1 100644 --- a/SunnyUI.Demo/Controls/FTextBox.Designer.cs +++ b/SunnyUI.Demo/Controls/FTextBox.Designer.cs @@ -37,25 +37,29 @@ this.uiTextBox3 = new Sunny.UI.UITextBox(); this.uiComboBox1 = new Sunny.UI.UIComboBox(); this.uiComboBox2 = new Sunny.UI.UIComboBox(); - this._uiDatePicker1 = new Sunny.UI.UIDatePicker(); + this.uiDatePicker1 = new Sunny.UI.UIDatePicker(); this.uiDoubleUpDown1 = new Sunny.UI.UIDoubleUpDown(); this.uiLine1 = new Sunny.UI.UILine(); this.uiLine2 = new Sunny.UI.UILine(); this.uiLine3 = new Sunny.UI.UILine(); this.uiLine4 = new Sunny.UI.UILine(); this.uiLine5 = new Sunny.UI.UILine(); + this.uiTimePicker1 = new Sunny.UI.UITimePicker(); + this.uiLine6 = new Sunny.UI.UILine(); this.PagePanel.SuspendLayout(); this.SuspendLayout(); // // PagePanel // + this.PagePanel.Controls.Add(this.uiLine6); + this.PagePanel.Controls.Add(this.uiTimePicker1); this.PagePanel.Controls.Add(this.uiLine5); this.PagePanel.Controls.Add(this.uiLine4); this.PagePanel.Controls.Add(this.uiLine3); this.PagePanel.Controls.Add(this.uiLine2); this.PagePanel.Controls.Add(this.uiLine1); this.PagePanel.Controls.Add(this.uiDoubleUpDown1); - this.PagePanel.Controls.Add(this._uiDatePicker1); + this.PagePanel.Controls.Add(this.uiDatePicker1); this.PagePanel.Controls.Add(this.uiComboBox2); this.PagePanel.Controls.Add(this.uiComboBox1); this.PagePanel.Controls.Add(this.uiLabel3); @@ -200,23 +204,23 @@ this.uiComboBox2.TabIndex = 12; this.uiComboBox2.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; // - // _uiDatePicker1 + // uiDatePicker1 // - this._uiDatePicker1.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; - this._uiDatePicker1.FillColor = System.Drawing.Color.White; - this._uiDatePicker1.Font = new System.Drawing.Font("微软雅黑", 12F); - this._uiDatePicker1.Location = new System.Drawing.Point(30, 294); - this._uiDatePicker1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this._uiDatePicker1.MinimumSize = new System.Drawing.Size(63, 0); - this._uiDatePicker1.Name = "_uiDatePicker1"; - this._uiDatePicker1.Padding = new System.Windows.Forms.Padding(0, 0, 30, 0); - this._uiDatePicker1.Size = new System.Drawing.Size(150, 29); - this._uiDatePicker1.SymbolDropDown = 61555; - this._uiDatePicker1.SymbolNormal = 61555; - this._uiDatePicker1.TabIndex = 13; - this._uiDatePicker1.Text = "2020-04-16"; - this._uiDatePicker1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this._uiDatePicker1.Value = new System.DateTime(2020, 4, 16, 0, 0, 0, 0); + this.uiDatePicker1.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; + this.uiDatePicker1.FillColor = System.Drawing.Color.White; + this.uiDatePicker1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiDatePicker1.Location = new System.Drawing.Point(30, 294); + this.uiDatePicker1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiDatePicker1.MinimumSize = new System.Drawing.Size(63, 0); + this.uiDatePicker1.Name = "uiDatePicker1"; + this.uiDatePicker1.Padding = new System.Windows.Forms.Padding(0, 0, 30, 0); + this.uiDatePicker1.Size = new System.Drawing.Size(150, 29); + this.uiDatePicker1.SymbolDropDown = 61555; + this.uiDatePicker1.SymbolNormal = 61555; + this.uiDatePicker1.TabIndex = 13; + this.uiDatePicker1.Text = "2020-04-16"; + this.uiDatePicker1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; + this.uiDatePicker1.Value = new System.DateTime(2020, 4, 16, 0, 0, 0, 0); // // uiDoubleUpDown1 // @@ -258,7 +262,7 @@ this.uiLine3.Location = new System.Drawing.Point(30, 260); this.uiLine3.MinimumSize = new System.Drawing.Size(16, 16); this.uiLine3.Name = "uiLine3"; - this.uiLine3.Size = new System.Drawing.Size(306, 20); + this.uiLine3.Size = new System.Drawing.Size(150, 20); this.uiLine3.TabIndex = 22; this.uiLine3.Text = "UIDatePicker"; this.uiLine3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -285,6 +289,34 @@ this.uiLine5.Text = "UIDoubleUpDown"; this.uiLine5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // uiTimePicker1 + // + this.uiTimePicker1.FillColor = System.Drawing.Color.White; + this.uiTimePicker1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiTimePicker1.Location = new System.Drawing.Point(188, 294); + this.uiTimePicker1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiTimePicker1.MinimumSize = new System.Drawing.Size(63, 0); + this.uiTimePicker1.Name = "uiTimePicker1"; + this.uiTimePicker1.Padding = new System.Windows.Forms.Padding(0, 0, 30, 0); + this.uiTimePicker1.Size = new System.Drawing.Size(150, 29); + this.uiTimePicker1.SymbolDropDown = 61555; + this.uiTimePicker1.SymbolNormal = 61555; + this.uiTimePicker1.TabIndex = 25; + this.uiTimePicker1.Text = "uiTimePicker1"; + this.uiTimePicker1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; + this.uiTimePicker1.Value = new System.DateTime(2020, 5, 29, 23, 41, 39, 684); + // + // uiLine6 + // + this.uiLine6.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiLine6.Location = new System.Drawing.Point(188, 260); + this.uiLine6.MinimumSize = new System.Drawing.Size(16, 16); + this.uiLine6.Name = "uiLine6"; + this.uiLine6.Size = new System.Drawing.Size(150, 20); + this.uiLine6.TabIndex = 26; + this.uiLine6.Text = "UITimePicker"; + this.uiLine6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // // FTextBox // this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F); @@ -307,7 +339,7 @@ private UILabel uiLabel1; private UITextBox uiTextBox1; private UIIntegerUpDown uiIntegerUpDown1; - private UIDatePicker _uiDatePicker1; + private UIDatePicker uiDatePicker1; private UIComboBox uiComboBox2; private UIComboBox uiComboBox1; private UIDoubleUpDown uiDoubleUpDown1; @@ -316,5 +348,7 @@ private UILine uiLine2; private UILine uiLine1; private UILine uiLine5; + private UITimePicker uiTimePicker1; + private UILine uiLine6; } } \ No newline at end of file diff --git a/SunnyUI.Demo/Controls/FTextBox.cs b/SunnyUI.Demo/Controls/FTextBox.cs index 1239a840..cf3efa47 100644 --- a/SunnyUI.Demo/Controls/FTextBox.cs +++ b/SunnyUI.Demo/Controls/FTextBox.cs @@ -14,6 +14,9 @@ namespace Sunny.UI.Demo public FTextBox() { InitializeComponent(); + + uiDatePicker1.Value = DateTime.Today; + uiTimePicker1.Value = DateTime.Now; } } } \ No newline at end of file diff --git a/SunnyUI/Controls/DropItem/UIDateTimeItem.Designer.cs b/SunnyUI/Controls/DropItem/UIDateTimeItem.Designer.cs deleted file mode 100644 index b82d81c8..00000000 --- a/SunnyUI/Controls/DropItem/UIDateTimeItem.Designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -namespace Sunny.UI -{ - partial class UIDateTimeControl - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.monthCalendar = new System.Windows.Forms.MonthCalendar(); - this.SuspendLayout(); - // - // monthCalendar - // - this.monthCalendar.ForeColor = System.Drawing.SystemColors.WindowText; - this.monthCalendar.Location = new System.Drawing.Point(0, 0); - this.monthCalendar.Margin = new System.Windows.Forms.Padding(15, 16, 15, 16); - this.monthCalendar.MaxSelectionCount = 1; - this.monthCalendar.Name = "monthCalendar"; - this.monthCalendar.TabIndex = 2; - this.monthCalendar.DateChanged += new System.Windows.Forms.DateRangeEventHandler(this.monthCalendar_DateChanged); - this.monthCalendar.DateSelected += new System.Windows.Forms.DateRangeEventHandler(this.monthCalendar_DateSelected); - // - // UIDateTimeControl - // - this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.Controls.Add(this.monthCalendar); - this.Margin = new System.Windows.Forms.Padding(7, 9, 7, 9); - this.Name = "UIDateTimeControl"; - this.Size = new System.Drawing.Size(220, 180); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.MonthCalendar monthCalendar; - } -} diff --git a/SunnyUI/Controls/DropItem/UIDateTimeItem.cs b/SunnyUI/Controls/DropItem/UIDateTimeItem.cs index 9929a5af..6ec262ff 100644 --- a/SunnyUI/Controls/DropItem/UIDateTimeItem.cs +++ b/SunnyUI/Controls/DropItem/UIDateTimeItem.cs @@ -17,38 +17,1650 @@ * 创建日期: 2020-01-01 * * 2020-01-01: V2.2.0 增加文件说明 + * 2020-05-29: V2.2.5 重写 ******************************************************************************/ -using System.Windows.Forms; +using System; namespace Sunny.UI { - /// - /// 日期选择框弹出窗体 - /// - public partial class UIDateTimeControl : UIDropDownItem + public sealed class UIDateTimeItem : UIDropDownItem { - /// - /// 构造函数 - /// - public UIDateTimeControl() + private UITabControl TabControl; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.TabPage tabPage2; + private UIPanel uiPanel2; + private UISymbolButton b4; + private UISymbolButton b3; + private UISymbolButton b2; + private UISymbolButton b1; + private UIPanel uiPanel4; + private System.Windows.Forms.TabPage tabPage3; + private UIPanel uiPanel5; + private UILabel m12; + private UILabel m11; + private UILabel m10; + private UILabel m9; + private UILabel m8; + private UILabel m7; + private UILabel m6; + private UILabel m5; + private UILabel m4; + private UILabel m3; + private UILabel m2; + private UILabel m1; + private UILabel d36; + private UILabel d29; + private UILabel d22; + private UILabel d15; + private UILabel d8; + private UILabel d1; + private UILabel uiLabel1; + private UILine uiLine1; + private UILabel d42; + private UILabel d35; + private UILabel d28; + private UILabel d21; + private UILabel d14; + private UILabel d7; + private UILabel d41; + private UILabel d34; + private UILabel d27; + private UILabel d20; + private UILabel d13; + private UILabel d6; + private UILabel d40; + private UILabel d33; + private UILabel d26; + private UILabel d19; + private UILabel d12; + private UILabel d5; + private UILabel d39; + private UILabel d32; + private UILabel d25; + private UILabel d18; + private UILabel d11; + private UILabel d4; + private UILabel d38; + private UILabel d31; + private UILabel d24; + private UILabel d17; + private UILabel d10; + private UILabel d3; + private UILabel d37; + private UILabel d30; + private UILabel d23; + private UILabel d16; + private UILabel d9; + private UILabel d2; + private UILabel uiLabel13; + private UILabel uiLabel12; + private UILabel uiLabel11; + private UILabel uiLabel10; + private UILabel uiLabel9; + private UILabel uiLabel7; + private UILabel y10; + private UILabel y9; + private UILabel y8; + private UILabel y7; + private UILabel y6; + private UILabel y5; + private UILabel y4; + private UILabel y3; + private UILabel y2; + private UILabel y1; + private UIPanel TopPanel; + + private void InitializeComponent() + { + this.TopPanel = new Sunny.UI.UIPanel(); + this.b4 = new Sunny.UI.UISymbolButton(); + this.b3 = new Sunny.UI.UISymbolButton(); + this.b2 = new Sunny.UI.UISymbolButton(); + this.b1 = new Sunny.UI.UISymbolButton(); + this.TabControl = new Sunny.UI.UITabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.uiPanel2 = new Sunny.UI.UIPanel(); + this.y10 = new Sunny.UI.UILabel(); + this.y9 = new Sunny.UI.UILabel(); + this.y8 = new Sunny.UI.UILabel(); + this.y7 = new Sunny.UI.UILabel(); + this.y6 = new Sunny.UI.UILabel(); + this.y5 = new Sunny.UI.UILabel(); + this.y4 = new Sunny.UI.UILabel(); + this.y3 = new Sunny.UI.UILabel(); + this.y2 = new Sunny.UI.UILabel(); + this.y1 = new Sunny.UI.UILabel(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.uiPanel4 = new Sunny.UI.UIPanel(); + this.m12 = new Sunny.UI.UILabel(); + this.m11 = new Sunny.UI.UILabel(); + this.m10 = new Sunny.UI.UILabel(); + this.m9 = new Sunny.UI.UILabel(); + this.m8 = new Sunny.UI.UILabel(); + this.m7 = new Sunny.UI.UILabel(); + this.m6 = new Sunny.UI.UILabel(); + this.m5 = new Sunny.UI.UILabel(); + this.m4 = new Sunny.UI.UILabel(); + this.m3 = new Sunny.UI.UILabel(); + this.m2 = new Sunny.UI.UILabel(); + this.m1 = new Sunny.UI.UILabel(); + this.tabPage3 = new System.Windows.Forms.TabPage(); + this.uiPanel5 = new Sunny.UI.UIPanel(); + this.d42 = new Sunny.UI.UILabel(); + this.d35 = new Sunny.UI.UILabel(); + this.d28 = new Sunny.UI.UILabel(); + this.d21 = new Sunny.UI.UILabel(); + this.d14 = new Sunny.UI.UILabel(); + this.d7 = new Sunny.UI.UILabel(); + this.d41 = new Sunny.UI.UILabel(); + this.d34 = new Sunny.UI.UILabel(); + this.d27 = new Sunny.UI.UILabel(); + this.d20 = new Sunny.UI.UILabel(); + this.d13 = new Sunny.UI.UILabel(); + this.d6 = new Sunny.UI.UILabel(); + this.d40 = new Sunny.UI.UILabel(); + this.d33 = new Sunny.UI.UILabel(); + this.d26 = new Sunny.UI.UILabel(); + this.d19 = new Sunny.UI.UILabel(); + this.d12 = new Sunny.UI.UILabel(); + this.d5 = new Sunny.UI.UILabel(); + this.d39 = new Sunny.UI.UILabel(); + this.d32 = new Sunny.UI.UILabel(); + this.d25 = new Sunny.UI.UILabel(); + this.d18 = new Sunny.UI.UILabel(); + this.d11 = new Sunny.UI.UILabel(); + this.d4 = new Sunny.UI.UILabel(); + this.d38 = new Sunny.UI.UILabel(); + this.d31 = new Sunny.UI.UILabel(); + this.d24 = new Sunny.UI.UILabel(); + this.d17 = new Sunny.UI.UILabel(); + this.d10 = new Sunny.UI.UILabel(); + this.d3 = new Sunny.UI.UILabel(); + this.d37 = new Sunny.UI.UILabel(); + this.d30 = new Sunny.UI.UILabel(); + this.d23 = new Sunny.UI.UILabel(); + this.d16 = new Sunny.UI.UILabel(); + this.d9 = new Sunny.UI.UILabel(); + this.d2 = new Sunny.UI.UILabel(); + this.uiLabel13 = new Sunny.UI.UILabel(); + this.uiLabel12 = new Sunny.UI.UILabel(); + this.uiLabel11 = new Sunny.UI.UILabel(); + this.uiLabel10 = new Sunny.UI.UILabel(); + this.uiLabel9 = new Sunny.UI.UILabel(); + this.uiLabel7 = new Sunny.UI.UILabel(); + this.d36 = new Sunny.UI.UILabel(); + this.d29 = new Sunny.UI.UILabel(); + this.d22 = new Sunny.UI.UILabel(); + this.d15 = new Sunny.UI.UILabel(); + this.d8 = new Sunny.UI.UILabel(); + this.d1 = new Sunny.UI.UILabel(); + this.uiLabel1 = new Sunny.UI.UILabel(); + this.uiLine1 = new Sunny.UI.UILine(); + this.TopPanel.SuspendLayout(); + this.TabControl.SuspendLayout(); + this.tabPage1.SuspendLayout(); + this.uiPanel2.SuspendLayout(); + this.tabPage2.SuspendLayout(); + this.uiPanel4.SuspendLayout(); + this.tabPage3.SuspendLayout(); + this.uiPanel5.SuspendLayout(); + this.SuspendLayout(); + // + // TopPanel + // + this.TopPanel.Controls.Add(this.b4); + this.TopPanel.Controls.Add(this.b3); + this.TopPanel.Controls.Add(this.b2); + this.TopPanel.Controls.Add(this.b1); + this.TopPanel.Dock = System.Windows.Forms.DockStyle.Top; + this.TopPanel.Font = new System.Drawing.Font("微软雅黑", 12F); + this.TopPanel.Location = new System.Drawing.Point(0, 0); + this.TopPanel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.TopPanel.Name = "TopPanel"; + this.TopPanel.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.TopPanel.RectSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)(((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) + | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right))); + this.TopPanel.Size = new System.Drawing.Size(312, 31); + this.TopPanel.TabIndex = 0; + this.TopPanel.Text = "2020-05-05"; + this.TopPanel.Click += new System.EventHandler(this.TopPanel_Click); + // + // b4 + // + this.b4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.b4.BackColor = System.Drawing.Color.Transparent; + this.b4.Cursor = System.Windows.Forms.Cursors.Hand; + this.b4.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); + this.b4.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.b4.Font = new System.Drawing.Font("微软雅黑", 12F); + this.b4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.b4.ImageInterval = 0; + this.b4.Location = new System.Drawing.Point(278, 4); + this.b4.Name = "b4"; + this.b4.Padding = new System.Windows.Forms.Padding(24, 0, 0, 0); + this.b4.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.b4.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.b4.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; + this.b4.Size = new System.Drawing.Size(30, 24); + this.b4.Style = Sunny.UI.UIStyle.LightBlue; + this.b4.Symbol = 61697; + this.b4.TabIndex = 3; + this.b4.Click += new System.EventHandler(this.b4_Click); + // + // b3 + // + this.b3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.b3.BackColor = System.Drawing.Color.Transparent; + this.b3.Cursor = System.Windows.Forms.Cursors.Hand; + this.b3.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); + this.b3.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.b3.Font = new System.Drawing.Font("微软雅黑", 12F); + this.b3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.b3.ImageInterval = 0; + this.b3.Location = new System.Drawing.Point(242, 4); + this.b3.Name = "b3"; + this.b3.Padding = new System.Windows.Forms.Padding(24, 0, 0, 0); + this.b3.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.b3.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.b3.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; + this.b3.Size = new System.Drawing.Size(30, 24); + this.b3.Style = Sunny.UI.UIStyle.LightBlue; + this.b3.Symbol = 61701; + this.b3.TabIndex = 2; + this.b3.Click += new System.EventHandler(this.b3_Click); + // + // b2 + // + this.b2.BackColor = System.Drawing.Color.Transparent; + this.b2.Cursor = System.Windows.Forms.Cursors.Hand; + this.b2.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); + this.b2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.b2.Font = new System.Drawing.Font("微软雅黑", 12F); + this.b2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.b2.ImageInterval = 0; + this.b2.Location = new System.Drawing.Point(40, 4); + this.b2.Name = "b2"; + this.b2.Padding = new System.Windows.Forms.Padding(24, 0, 0, 0); + this.b2.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.b2.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.b2.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; + this.b2.Size = new System.Drawing.Size(30, 24); + this.b2.Style = Sunny.UI.UIStyle.LightBlue; + this.b2.Symbol = 61700; + this.b2.TabIndex = 1; + this.b2.Click += new System.EventHandler(this.b2_Click); + // + // b1 + // + this.b1.BackColor = System.Drawing.Color.Transparent; + this.b1.Cursor = System.Windows.Forms.Cursors.Hand; + this.b1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); + this.b1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.b1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.b1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.b1.ImageInterval = 0; + this.b1.Location = new System.Drawing.Point(4, 4); + this.b1.Name = "b1"; + this.b1.Padding = new System.Windows.Forms.Padding(24, 0, 0, 0); + this.b1.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.b1.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.b1.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; + this.b1.Size = new System.Drawing.Size(30, 24); + this.b1.Style = Sunny.UI.UIStyle.LightBlue; + this.b1.Symbol = 61696; + this.b1.TabIndex = 0; + this.b1.Click += new System.EventHandler(this.b1_Click); + // + // TabControl + // + this.TabControl.Controls.Add(this.tabPage1); + this.TabControl.Controls.Add(this.tabPage2); + this.TabControl.Controls.Add(this.tabPage3); + this.TabControl.Dock = System.Windows.Forms.DockStyle.Fill; + this.TabControl.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed; + this.TabControl.Font = new System.Drawing.Font("微软雅黑", 12F); + this.TabControl.ItemSize = new System.Drawing.Size(0, 1); + this.TabControl.Location = new System.Drawing.Point(0, 31); + this.TabControl.Name = "TabControl"; + this.TabControl.SelectedIndex = 0; + this.TabControl.Size = new System.Drawing.Size(312, 169); + this.TabControl.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; + this.TabControl.TabIndex = 1; + this.TabControl.TabVisible = false; + this.TabControl.SelectedIndexChanged += new System.EventHandler(this.TabControl_SelectedIndexChanged); + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.uiPanel2); + this.tabPage1.Location = new System.Drawing.Point(0, 40); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Size = new System.Drawing.Size(312, 129); + this.tabPage1.TabIndex = 0; + this.tabPage1.Text = "tabPage1"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // uiPanel2 + // + this.uiPanel2.Controls.Add(this.y10); + this.uiPanel2.Controls.Add(this.y9); + this.uiPanel2.Controls.Add(this.y8); + this.uiPanel2.Controls.Add(this.y7); + this.uiPanel2.Controls.Add(this.y6); + this.uiPanel2.Controls.Add(this.y5); + this.uiPanel2.Controls.Add(this.y4); + this.uiPanel2.Controls.Add(this.y3); + this.uiPanel2.Controls.Add(this.y2); + this.uiPanel2.Controls.Add(this.y1); + this.uiPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiPanel2.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiPanel2.Location = new System.Drawing.Point(0, 0); + this.uiPanel2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiPanel2.Name = "uiPanel2"; + this.uiPanel2.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.uiPanel2.Size = new System.Drawing.Size(312, 129); + this.uiPanel2.TabIndex = 0; + this.uiPanel2.Text = null; + // + // y10 + // + this.y10.Font = new System.Drawing.Font("微软雅黑", 12F); + this.y10.Location = new System.Drawing.Point(83, 112); + this.y10.Name = "y10"; + this.y10.Size = new System.Drawing.Size(70, 51); + this.y10.Style = Sunny.UI.UIStyle.Custom; + this.y10.StyleCustomMode = true; + this.y10.TabIndex = 33; + this.y10.Tag = "10"; + this.y10.Text = "十月"; + this.y10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.y10.Click += new System.EventHandler(this.y1_Click); + // + // y9 + // + this.y9.Font = new System.Drawing.Font("微软雅黑", 12F); + this.y9.Location = new System.Drawing.Point(7, 112); + this.y9.Name = "y9"; + this.y9.Size = new System.Drawing.Size(70, 51); + this.y9.Style = Sunny.UI.UIStyle.Custom; + this.y9.StyleCustomMode = true; + this.y9.TabIndex = 32; + this.y9.Tag = "9"; + this.y9.Text = "九月"; + this.y9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.y9.Click += new System.EventHandler(this.y1_Click); + // + // y8 + // + this.y8.Font = new System.Drawing.Font("微软雅黑", 12F); + this.y8.Location = new System.Drawing.Point(235, 58); + this.y8.Name = "y8"; + this.y8.Size = new System.Drawing.Size(70, 51); + this.y8.Style = Sunny.UI.UIStyle.Custom; + this.y8.StyleCustomMode = true; + this.y8.TabIndex = 31; + this.y8.Tag = "8"; + this.y8.Text = "八月"; + this.y8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.y8.Click += new System.EventHandler(this.y1_Click); + // + // y7 + // + this.y7.Font = new System.Drawing.Font("微软雅黑", 12F); + this.y7.Location = new System.Drawing.Point(159, 58); + this.y7.Name = "y7"; + this.y7.Size = new System.Drawing.Size(70, 51); + this.y7.Style = Sunny.UI.UIStyle.Custom; + this.y7.StyleCustomMode = true; + this.y7.TabIndex = 30; + this.y7.Tag = "7"; + this.y7.Text = "七月"; + this.y7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.y7.Click += new System.EventHandler(this.y1_Click); + // + // y6 + // + this.y6.Font = new System.Drawing.Font("微软雅黑", 12F); + this.y6.Location = new System.Drawing.Point(83, 58); + this.y6.Name = "y6"; + this.y6.Size = new System.Drawing.Size(70, 51); + this.y6.Style = Sunny.UI.UIStyle.Custom; + this.y6.StyleCustomMode = true; + this.y6.TabIndex = 29; + this.y6.Tag = "6"; + this.y6.Text = "六月"; + this.y6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.y6.Click += new System.EventHandler(this.y1_Click); + // + // y5 + // + this.y5.Font = new System.Drawing.Font("微软雅黑", 12F); + this.y5.Location = new System.Drawing.Point(7, 58); + this.y5.Name = "y5"; + this.y5.Size = new System.Drawing.Size(70, 51); + this.y5.Style = Sunny.UI.UIStyle.Custom; + this.y5.StyleCustomMode = true; + this.y5.TabIndex = 28; + this.y5.Tag = "5"; + this.y5.Text = "五月"; + this.y5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.y5.Click += new System.EventHandler(this.y1_Click); + // + // y4 + // + this.y4.Font = new System.Drawing.Font("微软雅黑", 12F); + this.y4.Location = new System.Drawing.Point(235, 4); + this.y4.Name = "y4"; + this.y4.Size = new System.Drawing.Size(70, 51); + this.y4.Style = Sunny.UI.UIStyle.Custom; + this.y4.StyleCustomMode = true; + this.y4.TabIndex = 27; + this.y4.Tag = "4"; + this.y4.Text = "四月"; + this.y4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.y4.Click += new System.EventHandler(this.y1_Click); + // + // y3 + // + this.y3.Font = new System.Drawing.Font("微软雅黑", 12F); + this.y3.Location = new System.Drawing.Point(159, 4); + this.y3.Name = "y3"; + this.y3.Size = new System.Drawing.Size(70, 51); + this.y3.Style = Sunny.UI.UIStyle.Custom; + this.y3.StyleCustomMode = true; + this.y3.TabIndex = 26; + this.y3.Tag = "3"; + this.y3.Text = "三月"; + this.y3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.y3.Click += new System.EventHandler(this.y1_Click); + // + // y2 + // + this.y2.Font = new System.Drawing.Font("微软雅黑", 12F); + this.y2.Location = new System.Drawing.Point(83, 4); + this.y2.Name = "y2"; + this.y2.Size = new System.Drawing.Size(70, 51); + this.y2.Style = Sunny.UI.UIStyle.Custom; + this.y2.StyleCustomMode = true; + this.y2.TabIndex = 25; + this.y2.Tag = "2"; + this.y2.Text = "二月"; + this.y2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.y2.Click += new System.EventHandler(this.y1_Click); + // + // y1 + // + this.y1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.y1.Location = new System.Drawing.Point(7, 4); + this.y1.Name = "y1"; + this.y1.Size = new System.Drawing.Size(70, 51); + this.y1.Style = Sunny.UI.UIStyle.Custom; + this.y1.StyleCustomMode = true; + this.y1.TabIndex = 24; + this.y1.Tag = "1"; + this.y1.Text = "一月"; + this.y1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.y1.Click += new System.EventHandler(this.y1_Click); + // + // tabPage2 + // + this.tabPage2.Controls.Add(this.uiPanel4); + this.tabPage2.Location = new System.Drawing.Point(0, 0); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.Size = new System.Drawing.Size(312, 169); + this.tabPage2.TabIndex = 1; + this.tabPage2.Text = "tabPage2"; + this.tabPage2.UseVisualStyleBackColor = true; + // + // uiPanel4 + // + this.uiPanel4.Controls.Add(this.m12); + this.uiPanel4.Controls.Add(this.m11); + this.uiPanel4.Controls.Add(this.m10); + this.uiPanel4.Controls.Add(this.m9); + this.uiPanel4.Controls.Add(this.m8); + this.uiPanel4.Controls.Add(this.m7); + this.uiPanel4.Controls.Add(this.m6); + this.uiPanel4.Controls.Add(this.m5); + this.uiPanel4.Controls.Add(this.m4); + this.uiPanel4.Controls.Add(this.m3); + this.uiPanel4.Controls.Add(this.m2); + this.uiPanel4.Controls.Add(this.m1); + this.uiPanel4.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiPanel4.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiPanel4.Location = new System.Drawing.Point(0, 0); + this.uiPanel4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiPanel4.Name = "uiPanel4"; + this.uiPanel4.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.uiPanel4.Size = new System.Drawing.Size(312, 169); + this.uiPanel4.TabIndex = 1; + this.uiPanel4.Text = null; + // + // m12 + // + this.m12.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m12.Location = new System.Drawing.Point(235, 112); + this.m12.Name = "m12"; + this.m12.Size = new System.Drawing.Size(70, 51); + this.m12.Style = Sunny.UI.UIStyle.Custom; + this.m12.StyleCustomMode = true; + this.m12.TabIndex = 23; + this.m12.Tag = "12"; + this.m12.Text = "十二月"; + this.m12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.m12.Click += new System.EventHandler(this.m1_Click); + // + // m11 + // + this.m11.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m11.Location = new System.Drawing.Point(159, 112); + this.m11.Name = "m11"; + this.m11.Size = new System.Drawing.Size(70, 51); + this.m11.Style = Sunny.UI.UIStyle.Custom; + this.m11.StyleCustomMode = true; + this.m11.TabIndex = 22; + this.m11.Tag = "11"; + this.m11.Text = "十一月"; + this.m11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.m11.Click += new System.EventHandler(this.m1_Click); + // + // m10 + // + this.m10.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m10.Location = new System.Drawing.Point(83, 112); + this.m10.Name = "m10"; + this.m10.Size = new System.Drawing.Size(70, 51); + this.m10.Style = Sunny.UI.UIStyle.Custom; + this.m10.StyleCustomMode = true; + this.m10.TabIndex = 21; + this.m10.Tag = "10"; + this.m10.Text = "十月"; + this.m10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.m10.Click += new System.EventHandler(this.m1_Click); + // + // m9 + // + this.m9.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m9.Location = new System.Drawing.Point(7, 112); + this.m9.Name = "m9"; + this.m9.Size = new System.Drawing.Size(70, 51); + this.m9.Style = Sunny.UI.UIStyle.Custom; + this.m9.StyleCustomMode = true; + this.m9.TabIndex = 20; + this.m9.Tag = "9"; + this.m9.Text = "九月"; + this.m9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.m9.Click += new System.EventHandler(this.m1_Click); + // + // m8 + // + this.m8.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m8.Location = new System.Drawing.Point(235, 58); + this.m8.Name = "m8"; + this.m8.Size = new System.Drawing.Size(70, 51); + this.m8.Style = Sunny.UI.UIStyle.Custom; + this.m8.StyleCustomMode = true; + this.m8.TabIndex = 19; + this.m8.Tag = "8"; + this.m8.Text = "八月"; + this.m8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.m8.Click += new System.EventHandler(this.m1_Click); + // + // m7 + // + this.m7.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m7.Location = new System.Drawing.Point(159, 58); + this.m7.Name = "m7"; + this.m7.Size = new System.Drawing.Size(70, 51); + this.m7.Style = Sunny.UI.UIStyle.Custom; + this.m7.StyleCustomMode = true; + this.m7.TabIndex = 18; + this.m7.Tag = "7"; + this.m7.Text = "七月"; + this.m7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.m7.Click += new System.EventHandler(this.m1_Click); + // + // m6 + // + this.m6.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m6.Location = new System.Drawing.Point(83, 58); + this.m6.Name = "m6"; + this.m6.Size = new System.Drawing.Size(70, 51); + this.m6.Style = Sunny.UI.UIStyle.Custom; + this.m6.StyleCustomMode = true; + this.m6.TabIndex = 17; + this.m6.Tag = "6"; + this.m6.Text = "六月"; + this.m6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.m6.Click += new System.EventHandler(this.m1_Click); + // + // m5 + // + this.m5.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m5.Location = new System.Drawing.Point(7, 58); + this.m5.Name = "m5"; + this.m5.Size = new System.Drawing.Size(70, 51); + this.m5.Style = Sunny.UI.UIStyle.Custom; + this.m5.StyleCustomMode = true; + this.m5.TabIndex = 16; + this.m5.Tag = "5"; + this.m5.Text = "五月"; + this.m5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.m5.Click += new System.EventHandler(this.m1_Click); + // + // m4 + // + this.m4.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m4.Location = new System.Drawing.Point(235, 4); + this.m4.Name = "m4"; + this.m4.Size = new System.Drawing.Size(70, 51); + this.m4.Style = Sunny.UI.UIStyle.Custom; + this.m4.StyleCustomMode = true; + this.m4.TabIndex = 15; + this.m4.Tag = "4"; + this.m4.Text = "四月"; + this.m4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.m4.Click += new System.EventHandler(this.m1_Click); + // + // m3 + // + this.m3.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m3.Location = new System.Drawing.Point(159, 4); + this.m3.Name = "m3"; + this.m3.Size = new System.Drawing.Size(70, 51); + this.m3.Style = Sunny.UI.UIStyle.Custom; + this.m3.StyleCustomMode = true; + this.m3.TabIndex = 14; + this.m3.Tag = "3"; + this.m3.Text = "三月"; + this.m3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.m3.Click += new System.EventHandler(this.m1_Click); + // + // m2 + // + this.m2.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m2.Location = new System.Drawing.Point(83, 4); + this.m2.Name = "m2"; + this.m2.Size = new System.Drawing.Size(70, 51); + this.m2.Style = Sunny.UI.UIStyle.Custom; + this.m2.StyleCustomMode = true; + this.m2.TabIndex = 13; + this.m2.Tag = "2"; + this.m2.Text = "二月"; + this.m2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.m2.Click += new System.EventHandler(this.m1_Click); + // + // m1 + // + this.m1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m1.Location = new System.Drawing.Point(7, 4); + this.m1.Name = "m1"; + this.m1.Size = new System.Drawing.Size(70, 51); + this.m1.Style = Sunny.UI.UIStyle.Custom; + this.m1.StyleCustomMode = true; + this.m1.TabIndex = 12; + this.m1.Tag = "1"; + this.m1.Text = "一月"; + this.m1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.m1.Click += new System.EventHandler(this.m1_Click); + // + // tabPage3 + // + this.tabPage3.Controls.Add(this.uiPanel5); + this.tabPage3.Location = new System.Drawing.Point(0, 40); + this.tabPage3.Name = "tabPage3"; + this.tabPage3.Size = new System.Drawing.Size(312, 129); + this.tabPage3.TabIndex = 2; + this.tabPage3.Text = "tabPage3"; + this.tabPage3.UseVisualStyleBackColor = true; + // + // uiPanel5 + // + this.uiPanel5.Controls.Add(this.d42); + this.uiPanel5.Controls.Add(this.d35); + this.uiPanel5.Controls.Add(this.d28); + this.uiPanel5.Controls.Add(this.d21); + this.uiPanel5.Controls.Add(this.d14); + this.uiPanel5.Controls.Add(this.d7); + this.uiPanel5.Controls.Add(this.d41); + this.uiPanel5.Controls.Add(this.d34); + this.uiPanel5.Controls.Add(this.d27); + this.uiPanel5.Controls.Add(this.d20); + this.uiPanel5.Controls.Add(this.d13); + this.uiPanel5.Controls.Add(this.d6); + this.uiPanel5.Controls.Add(this.d40); + this.uiPanel5.Controls.Add(this.d33); + this.uiPanel5.Controls.Add(this.d26); + this.uiPanel5.Controls.Add(this.d19); + this.uiPanel5.Controls.Add(this.d12); + this.uiPanel5.Controls.Add(this.d5); + this.uiPanel5.Controls.Add(this.d39); + this.uiPanel5.Controls.Add(this.d32); + this.uiPanel5.Controls.Add(this.d25); + this.uiPanel5.Controls.Add(this.d18); + this.uiPanel5.Controls.Add(this.d11); + this.uiPanel5.Controls.Add(this.d4); + this.uiPanel5.Controls.Add(this.d38); + this.uiPanel5.Controls.Add(this.d31); + this.uiPanel5.Controls.Add(this.d24); + this.uiPanel5.Controls.Add(this.d17); + this.uiPanel5.Controls.Add(this.d10); + this.uiPanel5.Controls.Add(this.d3); + this.uiPanel5.Controls.Add(this.d37); + this.uiPanel5.Controls.Add(this.d30); + this.uiPanel5.Controls.Add(this.d23); + this.uiPanel5.Controls.Add(this.d16); + this.uiPanel5.Controls.Add(this.d9); + this.uiPanel5.Controls.Add(this.d2); + this.uiPanel5.Controls.Add(this.uiLabel13); + this.uiPanel5.Controls.Add(this.uiLabel12); + this.uiPanel5.Controls.Add(this.uiLabel11); + this.uiPanel5.Controls.Add(this.uiLabel10); + this.uiPanel5.Controls.Add(this.uiLabel9); + this.uiPanel5.Controls.Add(this.uiLabel7); + this.uiPanel5.Controls.Add(this.d36); + this.uiPanel5.Controls.Add(this.d29); + this.uiPanel5.Controls.Add(this.d22); + this.uiPanel5.Controls.Add(this.d15); + this.uiPanel5.Controls.Add(this.d8); + this.uiPanel5.Controls.Add(this.d1); + this.uiPanel5.Controls.Add(this.uiLabel1); + this.uiPanel5.Controls.Add(this.uiLine1); + this.uiPanel5.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiPanel5.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiPanel5.Location = new System.Drawing.Point(0, 0); + this.uiPanel5.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiPanel5.Name = "uiPanel5"; + this.uiPanel5.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.uiPanel5.Size = new System.Drawing.Size(312, 129); + this.uiPanel5.TabIndex = 2; + this.uiPanel5.Text = null; + // + // d42 + // + this.d42.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d42.Location = new System.Drawing.Point(268, 145); + this.d42.Name = "d42"; + this.d42.Size = new System.Drawing.Size(40, 19); + this.d42.Style = Sunny.UI.UIStyle.Custom; + this.d42.StyleCustomMode = true; + this.d42.TabIndex = 49; + this.d42.Text = "uiLabel44"; + this.d42.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d42.Click += new System.EventHandler(this.d1_Click); + // + // d35 + // + this.d35.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d35.Location = new System.Drawing.Point(268, 122); + this.d35.Name = "d35"; + this.d35.Size = new System.Drawing.Size(40, 19); + this.d35.Style = Sunny.UI.UIStyle.Custom; + this.d35.StyleCustomMode = true; + this.d35.TabIndex = 48; + this.d35.Text = "uiLabel45"; + this.d35.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d35.Click += new System.EventHandler(this.d1_Click); + // + // d28 + // + this.d28.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d28.Location = new System.Drawing.Point(268, 99); + this.d28.Name = "d28"; + this.d28.Size = new System.Drawing.Size(40, 19); + this.d28.Style = Sunny.UI.UIStyle.Custom; + this.d28.StyleCustomMode = true; + this.d28.TabIndex = 47; + this.d28.Text = "uiLabel46"; + this.d28.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d28.Click += new System.EventHandler(this.d1_Click); + // + // d21 + // + this.d21.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d21.Location = new System.Drawing.Point(268, 76); + this.d21.Name = "d21"; + this.d21.Size = new System.Drawing.Size(40, 19); + this.d21.Style = Sunny.UI.UIStyle.Custom; + this.d21.StyleCustomMode = true; + this.d21.TabIndex = 46; + this.d21.Text = "uiLabel47"; + this.d21.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d21.Click += new System.EventHandler(this.d1_Click); + // + // d14 + // + this.d14.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d14.Location = new System.Drawing.Point(268, 53); + this.d14.Name = "d14"; + this.d14.Size = new System.Drawing.Size(40, 19); + this.d14.Style = Sunny.UI.UIStyle.Custom; + this.d14.StyleCustomMode = true; + this.d14.TabIndex = 45; + this.d14.Text = "uiLabel48"; + this.d14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d14.Click += new System.EventHandler(this.d1_Click); + // + // d7 + // + this.d7.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d7.Location = new System.Drawing.Point(268, 30); + this.d7.Name = "d7"; + this.d7.Size = new System.Drawing.Size(40, 19); + this.d7.Style = Sunny.UI.UIStyle.Custom; + this.d7.StyleCustomMode = true; + this.d7.TabIndex = 44; + this.d7.Text = "uiLabel49"; + this.d7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d7.Click += new System.EventHandler(this.d1_Click); + // + // d41 + // + this.d41.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d41.Location = new System.Drawing.Point(224, 145); + this.d41.Name = "d41"; + this.d41.Size = new System.Drawing.Size(40, 19); + this.d41.Style = Sunny.UI.UIStyle.Custom; + this.d41.StyleCustomMode = true; + this.d41.TabIndex = 43; + this.d41.Text = "uiLabel38"; + this.d41.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d41.Click += new System.EventHandler(this.d1_Click); + // + // d34 + // + this.d34.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d34.Location = new System.Drawing.Point(224, 122); + this.d34.Name = "d34"; + this.d34.Size = new System.Drawing.Size(40, 19); + this.d34.Style = Sunny.UI.UIStyle.Custom; + this.d34.StyleCustomMode = true; + this.d34.TabIndex = 42; + this.d34.Text = "uiLabel39"; + this.d34.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d34.Click += new System.EventHandler(this.d1_Click); + // + // d27 + // + this.d27.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d27.Location = new System.Drawing.Point(224, 99); + this.d27.Name = "d27"; + this.d27.Size = new System.Drawing.Size(40, 19); + this.d27.Style = Sunny.UI.UIStyle.Custom; + this.d27.StyleCustomMode = true; + this.d27.TabIndex = 41; + this.d27.Text = "uiLabel40"; + this.d27.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d27.Click += new System.EventHandler(this.d1_Click); + // + // d20 + // + this.d20.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d20.Location = new System.Drawing.Point(224, 76); + this.d20.Name = "d20"; + this.d20.Size = new System.Drawing.Size(40, 19); + this.d20.Style = Sunny.UI.UIStyle.Custom; + this.d20.StyleCustomMode = true; + this.d20.TabIndex = 40; + this.d20.Text = "uiLabel41"; + this.d20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d20.Click += new System.EventHandler(this.d1_Click); + // + // d13 + // + this.d13.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d13.Location = new System.Drawing.Point(224, 53); + this.d13.Name = "d13"; + this.d13.Size = new System.Drawing.Size(40, 19); + this.d13.Style = Sunny.UI.UIStyle.Custom; + this.d13.StyleCustomMode = true; + this.d13.TabIndex = 39; + this.d13.Text = "uiLabel42"; + this.d13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d13.Click += new System.EventHandler(this.d1_Click); + // + // d6 + // + this.d6.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d6.Location = new System.Drawing.Point(224, 30); + this.d6.Name = "d6"; + this.d6.Size = new System.Drawing.Size(40, 19); + this.d6.Style = Sunny.UI.UIStyle.Custom; + this.d6.StyleCustomMode = true; + this.d6.TabIndex = 38; + this.d6.Text = "uiLabel43"; + this.d6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d6.Click += new System.EventHandler(this.d1_Click); + // + // d40 + // + this.d40.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d40.Location = new System.Drawing.Point(180, 145); + this.d40.Name = "d40"; + this.d40.Size = new System.Drawing.Size(40, 19); + this.d40.Style = Sunny.UI.UIStyle.Custom; + this.d40.StyleCustomMode = true; + this.d40.TabIndex = 37; + this.d40.Text = "uiLabel32"; + this.d40.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d40.Click += new System.EventHandler(this.d1_Click); + // + // d33 + // + this.d33.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d33.Location = new System.Drawing.Point(180, 122); + this.d33.Name = "d33"; + this.d33.Size = new System.Drawing.Size(40, 19); + this.d33.Style = Sunny.UI.UIStyle.Custom; + this.d33.StyleCustomMode = true; + this.d33.TabIndex = 36; + this.d33.Text = "uiLabel33"; + this.d33.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d33.Click += new System.EventHandler(this.d1_Click); + // + // d26 + // + this.d26.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d26.Location = new System.Drawing.Point(180, 99); + this.d26.Name = "d26"; + this.d26.Size = new System.Drawing.Size(40, 19); + this.d26.Style = Sunny.UI.UIStyle.Custom; + this.d26.StyleCustomMode = true; + this.d26.TabIndex = 35; + this.d26.Text = "uiLabel34"; + this.d26.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d26.Click += new System.EventHandler(this.d1_Click); + // + // d19 + // + this.d19.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d19.Location = new System.Drawing.Point(180, 76); + this.d19.Name = "d19"; + this.d19.Size = new System.Drawing.Size(40, 19); + this.d19.Style = Sunny.UI.UIStyle.Custom; + this.d19.StyleCustomMode = true; + this.d19.TabIndex = 34; + this.d19.Text = "uiLabel35"; + this.d19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d19.Click += new System.EventHandler(this.d1_Click); + // + // d12 + // + this.d12.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d12.Location = new System.Drawing.Point(180, 53); + this.d12.Name = "d12"; + this.d12.Size = new System.Drawing.Size(40, 19); + this.d12.Style = Sunny.UI.UIStyle.Custom; + this.d12.StyleCustomMode = true; + this.d12.TabIndex = 33; + this.d12.Text = "uiLabel36"; + this.d12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d12.Click += new System.EventHandler(this.d1_Click); + // + // d5 + // + this.d5.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d5.Location = new System.Drawing.Point(180, 30); + this.d5.Name = "d5"; + this.d5.Size = new System.Drawing.Size(40, 19); + this.d5.Style = Sunny.UI.UIStyle.Custom; + this.d5.StyleCustomMode = true; + this.d5.TabIndex = 32; + this.d5.Text = "uiLabel37"; + this.d5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d5.Click += new System.EventHandler(this.d1_Click); + // + // d39 + // + this.d39.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d39.Location = new System.Drawing.Point(136, 145); + this.d39.Name = "d39"; + this.d39.Size = new System.Drawing.Size(40, 19); + this.d39.Style = Sunny.UI.UIStyle.Custom; + this.d39.StyleCustomMode = true; + this.d39.TabIndex = 31; + this.d39.Text = "uiLabel26"; + this.d39.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d39.Click += new System.EventHandler(this.d1_Click); + // + // d32 + // + this.d32.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d32.Location = new System.Drawing.Point(136, 122); + this.d32.Name = "d32"; + this.d32.Size = new System.Drawing.Size(40, 19); + this.d32.Style = Sunny.UI.UIStyle.Custom; + this.d32.StyleCustomMode = true; + this.d32.TabIndex = 30; + this.d32.Text = "uiLabel27"; + this.d32.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d32.Click += new System.EventHandler(this.d1_Click); + // + // d25 + // + this.d25.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d25.Location = new System.Drawing.Point(136, 99); + this.d25.Name = "d25"; + this.d25.Size = new System.Drawing.Size(40, 19); + this.d25.Style = Sunny.UI.UIStyle.Custom; + this.d25.StyleCustomMode = true; + this.d25.TabIndex = 29; + this.d25.Text = "uiLabel28"; + this.d25.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d25.Click += new System.EventHandler(this.d1_Click); + // + // d18 + // + this.d18.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d18.Location = new System.Drawing.Point(136, 76); + this.d18.Name = "d18"; + this.d18.Size = new System.Drawing.Size(40, 19); + this.d18.Style = Sunny.UI.UIStyle.Custom; + this.d18.StyleCustomMode = true; + this.d18.TabIndex = 28; + this.d18.Text = "uiLabel29"; + this.d18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d18.Click += new System.EventHandler(this.d1_Click); + // + // d11 + // + this.d11.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d11.Location = new System.Drawing.Point(136, 53); + this.d11.Name = "d11"; + this.d11.Size = new System.Drawing.Size(40, 19); + this.d11.Style = Sunny.UI.UIStyle.Custom; + this.d11.StyleCustomMode = true; + this.d11.TabIndex = 27; + this.d11.Text = "uiLabel30"; + this.d11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d11.Click += new System.EventHandler(this.d1_Click); + // + // d4 + // + this.d4.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d4.Location = new System.Drawing.Point(136, 30); + this.d4.Name = "d4"; + this.d4.Size = new System.Drawing.Size(40, 19); + this.d4.Style = Sunny.UI.UIStyle.Custom; + this.d4.StyleCustomMode = true; + this.d4.TabIndex = 26; + this.d4.Text = "uiLabel31"; + this.d4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d4.Click += new System.EventHandler(this.d1_Click); + // + // d38 + // + this.d38.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d38.Location = new System.Drawing.Point(92, 145); + this.d38.Name = "d38"; + this.d38.Size = new System.Drawing.Size(40, 19); + this.d38.Style = Sunny.UI.UIStyle.Custom; + this.d38.StyleCustomMode = true; + this.d38.TabIndex = 25; + this.d38.Text = "uiLabel20"; + this.d38.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d38.Click += new System.EventHandler(this.d1_Click); + // + // d31 + // + this.d31.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d31.Location = new System.Drawing.Point(92, 122); + this.d31.Name = "d31"; + this.d31.Size = new System.Drawing.Size(40, 19); + this.d31.Style = Sunny.UI.UIStyle.Custom; + this.d31.StyleCustomMode = true; + this.d31.TabIndex = 24; + this.d31.Text = "uiLabel21"; + this.d31.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d31.Click += new System.EventHandler(this.d1_Click); + // + // d24 + // + this.d24.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d24.Location = new System.Drawing.Point(92, 99); + this.d24.Name = "d24"; + this.d24.Size = new System.Drawing.Size(40, 19); + this.d24.Style = Sunny.UI.UIStyle.Custom; + this.d24.StyleCustomMode = true; + this.d24.TabIndex = 23; + this.d24.Text = "uiLabel22"; + this.d24.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d24.Click += new System.EventHandler(this.d1_Click); + // + // d17 + // + this.d17.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d17.Location = new System.Drawing.Point(92, 76); + this.d17.Name = "d17"; + this.d17.Size = new System.Drawing.Size(40, 19); + this.d17.Style = Sunny.UI.UIStyle.Custom; + this.d17.StyleCustomMode = true; + this.d17.TabIndex = 22; + this.d17.Text = "uiLabel23"; + this.d17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d17.Click += new System.EventHandler(this.d1_Click); + // + // d10 + // + this.d10.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d10.Location = new System.Drawing.Point(92, 53); + this.d10.Name = "d10"; + this.d10.Size = new System.Drawing.Size(40, 19); + this.d10.Style = Sunny.UI.UIStyle.Custom; + this.d10.StyleCustomMode = true; + this.d10.TabIndex = 21; + this.d10.Text = "uiLabel24"; + this.d10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d10.Click += new System.EventHandler(this.d1_Click); + // + // d3 + // + this.d3.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d3.Location = new System.Drawing.Point(92, 30); + this.d3.Name = "d3"; + this.d3.Size = new System.Drawing.Size(40, 19); + this.d3.Style = Sunny.UI.UIStyle.Custom; + this.d3.StyleCustomMode = true; + this.d3.TabIndex = 20; + this.d3.Text = "uiLabel25"; + this.d3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d3.Click += new System.EventHandler(this.d1_Click); + // + // d37 + // + this.d37.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d37.Location = new System.Drawing.Point(48, 145); + this.d37.Name = "d37"; + this.d37.Size = new System.Drawing.Size(40, 19); + this.d37.Style = Sunny.UI.UIStyle.Custom; + this.d37.StyleCustomMode = true; + this.d37.TabIndex = 19; + this.d37.Text = "uiLabel14"; + this.d37.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d37.Click += new System.EventHandler(this.d1_Click); + // + // d30 + // + this.d30.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d30.Location = new System.Drawing.Point(48, 122); + this.d30.Name = "d30"; + this.d30.Size = new System.Drawing.Size(40, 19); + this.d30.Style = Sunny.UI.UIStyle.Custom; + this.d30.StyleCustomMode = true; + this.d30.TabIndex = 18; + this.d30.Text = "uiLabel15"; + this.d30.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d30.Click += new System.EventHandler(this.d1_Click); + // + // d23 + // + this.d23.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d23.Location = new System.Drawing.Point(48, 99); + this.d23.Name = "d23"; + this.d23.Size = new System.Drawing.Size(40, 19); + this.d23.Style = Sunny.UI.UIStyle.Custom; + this.d23.StyleCustomMode = true; + this.d23.TabIndex = 17; + this.d23.Text = "uiLabel16"; + this.d23.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d23.Click += new System.EventHandler(this.d1_Click); + // + // d16 + // + this.d16.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d16.Location = new System.Drawing.Point(48, 76); + this.d16.Name = "d16"; + this.d16.Size = new System.Drawing.Size(40, 19); + this.d16.Style = Sunny.UI.UIStyle.Custom; + this.d16.StyleCustomMode = true; + this.d16.TabIndex = 16; + this.d16.Text = "uiLabel17"; + this.d16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d16.Click += new System.EventHandler(this.d1_Click); + // + // d9 + // + this.d9.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d9.Location = new System.Drawing.Point(48, 53); + this.d9.Name = "d9"; + this.d9.Size = new System.Drawing.Size(40, 19); + this.d9.Style = Sunny.UI.UIStyle.Custom; + this.d9.StyleCustomMode = true; + this.d9.TabIndex = 15; + this.d9.Text = "uiLabel18"; + this.d9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d9.Click += new System.EventHandler(this.d1_Click); + // + // d2 + // + this.d2.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d2.Location = new System.Drawing.Point(48, 30); + this.d2.Name = "d2"; + this.d2.Size = new System.Drawing.Size(40, 19); + this.d2.Style = Sunny.UI.UIStyle.Custom; + this.d2.StyleCustomMode = true; + this.d2.TabIndex = 14; + this.d2.Text = "uiLabel19"; + this.d2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d2.Click += new System.EventHandler(this.d1_Click); + // + // uiLabel13 + // + this.uiLabel13.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiLabel13.Location = new System.Drawing.Point(268, 4); + this.uiLabel13.Name = "uiLabel13"; + this.uiLabel13.Size = new System.Drawing.Size(40, 19); + this.uiLabel13.Style = Sunny.UI.UIStyle.Custom; + this.uiLabel13.TabIndex = 13; + this.uiLabel13.Text = "六"; + this.uiLabel13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiLabel12 + // + this.uiLabel12.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiLabel12.Location = new System.Drawing.Point(224, 4); + this.uiLabel12.Name = "uiLabel12"; + this.uiLabel12.Size = new System.Drawing.Size(40, 19); + this.uiLabel12.Style = Sunny.UI.UIStyle.Custom; + this.uiLabel12.TabIndex = 12; + this.uiLabel12.Text = "五"; + this.uiLabel12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiLabel11 + // + this.uiLabel11.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiLabel11.Location = new System.Drawing.Point(180, 4); + this.uiLabel11.Name = "uiLabel11"; + this.uiLabel11.Size = new System.Drawing.Size(40, 19); + this.uiLabel11.Style = Sunny.UI.UIStyle.Custom; + this.uiLabel11.TabIndex = 11; + this.uiLabel11.Text = "四"; + this.uiLabel11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiLabel10 + // + this.uiLabel10.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiLabel10.Location = new System.Drawing.Point(136, 4); + this.uiLabel10.Name = "uiLabel10"; + this.uiLabel10.Size = new System.Drawing.Size(40, 19); + this.uiLabel10.Style = Sunny.UI.UIStyle.Custom; + this.uiLabel10.TabIndex = 10; + this.uiLabel10.Text = "三"; + this.uiLabel10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiLabel9 + // + this.uiLabel9.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiLabel9.Location = new System.Drawing.Point(92, 4); + this.uiLabel9.Name = "uiLabel9"; + this.uiLabel9.Size = new System.Drawing.Size(40, 19); + this.uiLabel9.Style = Sunny.UI.UIStyle.Custom; + this.uiLabel9.TabIndex = 9; + this.uiLabel9.Text = "二"; + this.uiLabel9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiLabel7 + // + this.uiLabel7.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiLabel7.Location = new System.Drawing.Point(48, 4); + this.uiLabel7.Name = "uiLabel7"; + this.uiLabel7.Size = new System.Drawing.Size(40, 19); + this.uiLabel7.Style = Sunny.UI.UIStyle.Custom; + this.uiLabel7.TabIndex = 8; + this.uiLabel7.Text = "一"; + this.uiLabel7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // d36 + // + this.d36.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d36.Location = new System.Drawing.Point(4, 145); + this.d36.Name = "d36"; + this.d36.Size = new System.Drawing.Size(40, 19); + this.d36.Style = Sunny.UI.UIStyle.Custom; + this.d36.StyleCustomMode = true; + this.d36.TabIndex = 6; + this.d36.Text = "uiLabel8"; + this.d36.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d36.Click += new System.EventHandler(this.d1_Click); + // + // d29 + // + this.d29.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d29.Location = new System.Drawing.Point(4, 122); + this.d29.Name = "d29"; + this.d29.Size = new System.Drawing.Size(40, 19); + this.d29.Style = Sunny.UI.UIStyle.Custom; + this.d29.StyleCustomMode = true; + this.d29.TabIndex = 5; + this.d29.Text = "uiLabel5"; + this.d29.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d29.Click += new System.EventHandler(this.d1_Click); + // + // d22 + // + this.d22.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d22.Location = new System.Drawing.Point(4, 99); + this.d22.Name = "d22"; + this.d22.Size = new System.Drawing.Size(40, 19); + this.d22.Style = Sunny.UI.UIStyle.Custom; + this.d22.StyleCustomMode = true; + this.d22.TabIndex = 4; + this.d22.Text = "uiLabel6"; + this.d22.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d22.Click += new System.EventHandler(this.d1_Click); + // + // d15 + // + this.d15.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d15.Location = new System.Drawing.Point(4, 76); + this.d15.Name = "d15"; + this.d15.Size = new System.Drawing.Size(40, 19); + this.d15.Style = Sunny.UI.UIStyle.Custom; + this.d15.StyleCustomMode = true; + this.d15.TabIndex = 3; + this.d15.Text = "uiLabel3"; + this.d15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d15.Click += new System.EventHandler(this.d1_Click); + // + // d8 + // + this.d8.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d8.Location = new System.Drawing.Point(4, 53); + this.d8.Name = "d8"; + this.d8.Size = new System.Drawing.Size(40, 19); + this.d8.Style = Sunny.UI.UIStyle.Custom; + this.d8.StyleCustomMode = true; + this.d8.TabIndex = 2; + this.d8.Text = "uiLabel4"; + this.d8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d8.Click += new System.EventHandler(this.d1_Click); + // + // d1 + // + this.d1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.d1.Location = new System.Drawing.Point(4, 30); + this.d1.Name = "d1"; + this.d1.Size = new System.Drawing.Size(40, 19); + this.d1.Style = Sunny.UI.UIStyle.Custom; + this.d1.StyleCustomMode = true; + this.d1.TabIndex = 1; + this.d1.Text = "uiLabel2"; + this.d1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.d1.Click += new System.EventHandler(this.d1_Click); + // + // uiLabel1 + // + this.uiLabel1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiLabel1.Location = new System.Drawing.Point(4, 4); + this.uiLabel1.Name = "uiLabel1"; + this.uiLabel1.Size = new System.Drawing.Size(40, 19); + this.uiLabel1.Style = Sunny.UI.UIStyle.Custom; + this.uiLabel1.TabIndex = 0; + this.uiLabel1.Text = "日"; + this.uiLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiLine1 + // + this.uiLine1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiLine1.LineColor = System.Drawing.Color.Silver; + this.uiLine1.Location = new System.Drawing.Point(4, 19); + this.uiLine1.MinimumSize = new System.Drawing.Size(16, 16); + this.uiLine1.Name = "uiLine1"; + this.uiLine1.Size = new System.Drawing.Size(304, 16); + this.uiLine1.Style = Sunny.UI.UIStyle.Custom; + this.uiLine1.StyleCustomMode = true; + this.uiLine1.TabIndex = 7; + // + // UIDateTimeItem + // + this.Controls.Add(this.TabControl); + this.Controls.Add(this.TopPanel); + this.Name = "UIDateTimeItem"; + this.Size = new System.Drawing.Size(312, 200); + this.TopPanel.ResumeLayout(false); + this.TabControl.ResumeLayout(false); + this.tabPage1.ResumeLayout(false); + this.uiPanel2.ResumeLayout(false); + this.tabPage2.ResumeLayout(false); + this.uiPanel4.ResumeLayout(false); + this.tabPage3.ResumeLayout(false); + this.uiPanel5.ResumeLayout(false); + this.ResumeLayout(false); + + } + + public UIDateTimeItem() { InitializeComponent(); + Width = 312; + Height = 200; + TabControl.TabVisible = false; + + for (int i = 1; i <= 10; i++) + { + var label = this.GetControl("y" + i); + label.MouseEnter += Label_MouseEnter; + label.MouseLeave += Label_MouseLeave; + } + + for (int i = 1; i <= 12; i++) + { + var label = this.GetControl("m" + i); + label.MouseEnter += Label_MouseEnter; + label.MouseLeave += Label_MouseLeave; + } + + for (int i = 1; i <= 42; i++) + { + var label = this.GetControl("d" + i); + label.MouseEnter += Label_MouseEnter; + label.MouseLeave += Label_MouseLeave; + } } - private void monthCalendar_DateChanged(object sender, DateRangeEventArgs e) + private void Label_MouseLeave(object sender, EventArgs e) { + UILabel label = (UILabel)sender; + if (label.Tag.ToString().Length <= 2) + { + label.ForeColor = UIFontColor.Primary; + } + else + { + DateTime lblDate = (DateTime)label.Tag; + label.ForeColor = (lblDate.Year == Year && lblDate.Month == Month) + ? UIFontColor.Primary + : UIFontColor.Plain; + + if (lblDate.DateString().Equals(date.DateString())) + { + label.ForeColor = UIColor.Blue; + } + } } - private void monthCalendar_DateSelected(object sender, DateRangeEventArgs e) + + private void Label_MouseEnter(object sender, EventArgs e) { - DoValueChanged(this, monthCalendar.SelectionStart); + UILabel label = (UILabel)sender; + label.ForeColor = UIColor.Blue; + } + + + private void TopPanel_Click(object sender, EventArgs e) + { + TabControl.SelectedTab = tabPage1; + } + + private void d1_Click(object sender, EventArgs e) + { + date = (DateTime)((UILabel)sender).Tag; + DoValueChanged(this, Date); CloseParent(); } - /// - /// 日期选择控件 - /// - public MonthCalendar MonthCalendar => monthCalendar; + private DateTime date; + + public DateTime Date + { + get => date; + set + { + date = value; + TabControl.SelectPage(2); + Year = date.Year; + Month = date.Month; + SetYearMonth(Year, Month); + TabControl.SelectedTab = tabPage3; + } + } + + private int year; + + public int Year + { + get => year; + set + { + year = value; + int iy = year / 10 * 10; + for (int i = 1; i <= 10; i++) + { + UILabel label = tabPage1.GetControl("y" + i); + label.Text = (iy + i - 1).ToString(); + } + } + } + + public int Month { get; set; } + + private void SetYearMonth(int iYear, int iMonth) + { + DateTime dt = new DateTime(iYear, iMonth, 1); + int week = (int)dt.DayOfWeek; + + DateTime dtBegin = week == 0 ? dt.AddDays(-7) : dt.AddDays(-week); + for (int i = 1; i <= 42; i++) + { + UILabel label = tabPage3.GetControl("d" + i); + DateTime lblDate = dtBegin.AddDays(i - 1); + label.Text = lblDate.Day.ToString(); + label.Tag = lblDate; + label.ForeColor = (lblDate.Year == iYear && lblDate.Month == iMonth) + ? UIFontColor.Primary + : UIFontColor.Plain; + + if (lblDate.DateString().Equals(date.DateString())) + { + label.ForeColor = UIColor.Blue; + } + } + + TopPanel.Text = Year + "年" + Month + "月"; + } + + private void TabControl_SelectedIndexChanged(object sender, EventArgs e) + { + b2.Visible = b3.Visible = TabControl.SelectedIndex == 2; + switch (TabControl.SelectedIndex) + { + case 0: + int iy = year / 10 * 10; + TopPanel.Text = iy + "年 - " + (iy + 9) + "年"; + for (int i = 1; i <= 10; i++) + { + UILabel label = tabPage1.GetControl("y" + i); + label.Text = (iy + i - 1).ToString(); + } + break; + case 1: + TopPanel.Text = Year + "年"; + break; + case 2: + TopPanel.Text = Year + "年" + Month + "月"; + break; + } + } + + private void y1_Click(object sender, EventArgs e) + { + Year = ((UILabel)sender).Text.ToInt(); + TabControl.SelectedTab = tabPage2; + } + + private void m1_Click(object sender, EventArgs e) + { + Month = ((UILabel)sender).Tag.ToString().ToInt(); + SetYearMonth(Year, Month); + TabControl.SelectedTab = tabPage3; + } + + private void b1_Click(object sender, EventArgs e) + { + switch (TabControl.SelectedIndex) + { + case 0: + int iy = year / 10 * 10; + iy -= 10; + TopPanel.Text = iy + "年 - " + (iy + 9) + "年"; + for (int i = 1; i <= 10; i++) + { + UILabel label = tabPage1.GetControl("y" + i); + label.Text = (iy + i - 1).ToString(); + } + break; + case 1: + Year -= 1; + TopPanel.Text = Year + "年"; + break; + case 2: + Year -= 1; + SetYearMonth(Year, Month); + break; + } + } + + private void b2_Click(object sender, EventArgs e) + { + DateTime dt = new DateTime(Year, Month, 1); + dt = dt.AddMonths(-1); + Year = dt.Year; + Month = dt.Month; + SetYearMonth(Year, Month); + } + + private void b3_Click(object sender, EventArgs e) + { + DateTime dt = new DateTime(Year, Month, 1); + dt = dt.AddMonths(1); + Year = dt.Year; + Month = dt.Month; + SetYearMonth(Year, Month); + } + + private void b4_Click(object sender, EventArgs e) + { + switch (TabControl.SelectedIndex) + { + case 0: + int iy = year / 10 * 10; + iy += 10; + TopPanel.Text = iy + "年 - " + (iy + 9) + "年"; + for (int i = 1; i <= 10; i++) + { + UILabel label = tabPage1.GetControl("y" + i); + label.Text = (iy + i - 1).ToString(); + } + break; + case 1: + Year += 1; + TopPanel.Text = Year + "年"; + break; + case 2: + Year += 1; + SetYearMonth(Year, Month); + break; + } + } } -} \ No newline at end of file +} diff --git a/SunnyUI/Controls/DropItem/UIDateTimeItem.resx b/SunnyUI/Controls/DropItem/UIDateTimeItem.resx new file mode 100644 index 00000000..1af7de15 --- /dev/null +++ b/SunnyUI/Controls/DropItem/UIDateTimeItem.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SunnyUI/Controls/DropItem/UITimeItem.cs b/SunnyUI/Controls/DropItem/UITimeItem.cs new file mode 100644 index 00000000..99c43d76 --- /dev/null +++ b/SunnyUI/Controls/DropItem/UITimeItem.cs @@ -0,0 +1,504 @@ +/****************************************************************************** + * SunnyUI 开源控件库、工具类库、扩展类库、多页面开发框架。 + * CopyRight (C) 2012-2020 ShenYongHua(沈永华). + * QQ群:56829229 QQ:17612584 EMail:SunnyUI@qq.com + * + * Blog: https://www.cnblogs.com/yhuse + * Gitee: https://gitee.com/yhuse/SunnyUI + * GitHub: https://github.com/yhuse/SunnyUI + * + * SunnyUI.dll can be used for free under the GPL-3.0 license. + * If you use this code, please keep this note. + * 如果您使用此代码,请保留此说明。 + ****************************************************************************** + * 文件名称: UIDateTimeItem.cs + * 文件说明: 时间选择框弹出窗体 + * 当前版本: V2.2 + * 创建日期: 2020-05-29 + * + * 2020-05-29: V2.2.5 创建 +******************************************************************************/ + +using System; + +namespace Sunny.UI +{ + public sealed class UITimeItem : UIDropDownItem + { + private UILine uiLine1; + private UISymbolButton s1; + private UISymbolButton m1; + private UISymbolButton h1; + private UISymbolButton s2; + private UISymbolButton m2; + private UISymbolButton h2; + private UISymbolButton btnOK; + private UISymbolButton btnCancel; + private UILabel hc; + private UILabel mc; + private UILabel sc; + private UILabel st; + private UILabel mt; + private UILabel ht; + private UILabel sb; + private UILabel mb; + private UILabel hb; + private UILine uiLine2; + + public UITimeItem() + { + InitializeComponent(); + } + + private DateTime time; + + public DateTime Time + { + get => time; + set + { + time = value; + Hour = time.Hour; + Minute = time.Minute; + Second = time.Second; + ShowOther(); + } + } + + private int hour; + private int minute; + private int second; + + public int Hour + { + get => hour; + set + { + hour = value; + hc.Text = hour.ToString(); + } + } + + public int Minute + { + get => minute; + set + { + minute = value; + mc.Text = minute.ToString(); + } + } + + public int Second + { + get => second; + set + { + second = value; + sc.Text = second.ToString(); + } + } + + private void ShowOther() + { + ht.Text = (hour - 1 + 24).Mod(24).ToString(); + hb.Text = (hour + 1 + 24).Mod(24).ToString(); + mt.Text = (minute - 1 + 60).Mod(60).ToString(); + mb.Text = (minute + 1 + 60).Mod(60).ToString(); + st.Text = (second - 1 + 60).Mod(60).ToString(); + sb.Text = (second + 1 + 60).Mod(60).ToString(); + } + + private void InitializeComponent() + { + this.uiLine1 = new Sunny.UI.UILine(); + this.uiLine2 = new Sunny.UI.UILine(); + this.s1 = new Sunny.UI.UISymbolButton(); + this.m1 = new Sunny.UI.UISymbolButton(); + this.h1 = new Sunny.UI.UISymbolButton(); + this.s2 = new Sunny.UI.UISymbolButton(); + this.m2 = new Sunny.UI.UISymbolButton(); + this.h2 = new Sunny.UI.UISymbolButton(); + this.btnOK = new Sunny.UI.UISymbolButton(); + this.btnCancel = new Sunny.UI.UISymbolButton(); + this.hc = new Sunny.UI.UILabel(); + this.mc = new Sunny.UI.UILabel(); + this.sc = new Sunny.UI.UILabel(); + this.st = new Sunny.UI.UILabel(); + this.mt = new Sunny.UI.UILabel(); + this.ht = new Sunny.UI.UILabel(); + this.sb = new Sunny.UI.UILabel(); + this.mb = new Sunny.UI.UILabel(); + this.hb = new Sunny.UI.UILabel(); + this.SuspendLayout(); + // + // uiLine1 + // + this.uiLine1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiLine1.LineColor = System.Drawing.Color.Silver; + this.uiLine1.Location = new System.Drawing.Point(11, 60); + this.uiLine1.MinimumSize = new System.Drawing.Size(16, 16); + this.uiLine1.Name = "uiLine1"; + this.uiLine1.Size = new System.Drawing.Size(157, 16); + this.uiLine1.Style = Sunny.UI.UIStyle.Custom; + this.uiLine1.StyleCustomMode = true; + this.uiLine1.TabIndex = 2; + // + // uiLine2 + // + this.uiLine2.Font = new System.Drawing.Font("微软雅黑", 12F); + this.uiLine2.LineColor = System.Drawing.Color.Silver; + this.uiLine2.Location = new System.Drawing.Point(11, 94); + this.uiLine2.MinimumSize = new System.Drawing.Size(16, 16); + this.uiLine2.Name = "uiLine2"; + this.uiLine2.Size = new System.Drawing.Size(157, 16); + this.uiLine2.Style = Sunny.UI.UIStyle.Custom; + this.uiLine2.StyleCustomMode = true; + this.uiLine2.TabIndex = 3; + // + // s1 + // + this.s1.BackColor = System.Drawing.Color.Transparent; + this.s1.Cursor = System.Windows.Forms.Cursors.Hand; + this.s1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); + this.s1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.s1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.s1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.s1.ImageInterval = 0; + this.s1.Location = new System.Drawing.Point(127, 13); + this.s1.Name = "s1"; + this.s1.Padding = new System.Windows.Forms.Padding(24, 0, 0, 0); + this.s1.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.s1.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.s1.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; + this.s1.Size = new System.Drawing.Size(30, 24); + this.s1.Style = Sunny.UI.UIStyle.LightBlue; + this.s1.StyleCustomMode = true; + this.s1.Symbol = 61702; + this.s1.TabIndex = 6; + this.s1.Click += new System.EventHandler(this.s1_Click); + // + // m1 + // + this.m1.BackColor = System.Drawing.Color.Transparent; + this.m1.Cursor = System.Windows.Forms.Cursors.Hand; + this.m1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); + this.m1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.m1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.m1.ImageInterval = 0; + this.m1.Location = new System.Drawing.Point(74, 13); + this.m1.Name = "m1"; + this.m1.Padding = new System.Windows.Forms.Padding(24, 0, 0, 0); + this.m1.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.m1.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.m1.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; + this.m1.Size = new System.Drawing.Size(30, 24); + this.m1.Style = Sunny.UI.UIStyle.LightBlue; + this.m1.StyleCustomMode = true; + this.m1.Symbol = 61702; + this.m1.TabIndex = 5; + this.m1.Click += new System.EventHandler(this.m1_Click); + // + // h1 + // + this.h1.BackColor = System.Drawing.Color.Transparent; + this.h1.Cursor = System.Windows.Forms.Cursors.Hand; + this.h1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); + this.h1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.h1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.h1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.h1.ImageInterval = 0; + this.h1.Location = new System.Drawing.Point(21, 13); + this.h1.Name = "h1"; + this.h1.Padding = new System.Windows.Forms.Padding(24, 0, 0, 0); + this.h1.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.h1.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.h1.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; + this.h1.Size = new System.Drawing.Size(30, 24); + this.h1.Style = Sunny.UI.UIStyle.LightBlue; + this.h1.StyleCustomMode = true; + this.h1.Symbol = 61702; + this.h1.TabIndex = 4; + this.h1.Click += new System.EventHandler(this.h1_Click); + // + // s2 + // + this.s2.BackColor = System.Drawing.Color.Transparent; + this.s2.Cursor = System.Windows.Forms.Cursors.Hand; + this.s2.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); + this.s2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.s2.Font = new System.Drawing.Font("微软雅黑", 12F); + this.s2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.s2.ImageInterval = 0; + this.s2.Location = new System.Drawing.Point(127, 132); + this.s2.Name = "s2"; + this.s2.Padding = new System.Windows.Forms.Padding(24, 0, 0, 0); + this.s2.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.s2.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.s2.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; + this.s2.Size = new System.Drawing.Size(30, 24); + this.s2.Style = Sunny.UI.UIStyle.LightBlue; + this.s2.StyleCustomMode = true; + this.s2.Symbol = 61703; + this.s2.TabIndex = 9; + this.s2.Click += new System.EventHandler(this.s2_Click); + // + // m2 + // + this.m2.BackColor = System.Drawing.Color.Transparent; + this.m2.Cursor = System.Windows.Forms.Cursors.Hand; + this.m2.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); + this.m2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.m2.Font = new System.Drawing.Font("微软雅黑", 12F); + this.m2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.m2.ImageInterval = 0; + this.m2.Location = new System.Drawing.Point(74, 132); + this.m2.Name = "m2"; + this.m2.Padding = new System.Windows.Forms.Padding(24, 0, 0, 0); + this.m2.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.m2.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.m2.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; + this.m2.Size = new System.Drawing.Size(30, 24); + this.m2.Style = Sunny.UI.UIStyle.LightBlue; + this.m2.StyleCustomMode = true; + this.m2.Symbol = 61703; + this.m2.TabIndex = 8; + this.m2.Click += new System.EventHandler(this.m2_Click); + // + // h2 + // + this.h2.BackColor = System.Drawing.Color.Transparent; + this.h2.Cursor = System.Windows.Forms.Cursors.Hand; + this.h2.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); + this.h2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.h2.Font = new System.Drawing.Font("微软雅黑", 12F); + this.h2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.h2.ImageInterval = 0; + this.h2.Location = new System.Drawing.Point(21, 131); + this.h2.Name = "h2"; + this.h2.Padding = new System.Windows.Forms.Padding(24, 0, 0, 0); + this.h2.RadiusSides = Sunny.UI.UICornerRadiusSides.None; + this.h2.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.h2.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; + this.h2.Size = new System.Drawing.Size(30, 24); + this.h2.Style = Sunny.UI.UIStyle.LightBlue; + this.h2.StyleCustomMode = true; + this.h2.Symbol = 61703; + this.h2.TabIndex = 7; + this.h2.Click += new System.EventHandler(this.h2_Click); + // + // btnOK + // + this.btnOK.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnOK.Font = new System.Drawing.Font("微软雅黑", 12F); + this.btnOK.Location = new System.Drawing.Point(13, 166); + this.btnOK.Name = "btnOK"; + this.btnOK.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0); + this.btnOK.Size = new System.Drawing.Size(74, 27); + this.btnOK.TabIndex = 10; + this.btnOK.Text = "确定"; + this.btnOK.Click += new System.EventHandler(this.btnOK_Click); + // + // btnCancel + // + this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 12F); + this.btnCancel.Location = new System.Drawing.Point(92, 166); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0); + this.btnCancel.Size = new System.Drawing.Size(74, 27); + this.btnCancel.Symbol = 61453; + this.btnCancel.TabIndex = 11; + this.btnCancel.Text = "取消"; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // hc + // + this.hc.BackColor = System.Drawing.Color.Transparent; + this.hc.Font = new System.Drawing.Font("微软雅黑", 12F); + this.hc.Location = new System.Drawing.Point(20, 73); + this.hc.Name = "hc"; + this.hc.Size = new System.Drawing.Size(35, 22); + this.hc.StyleCustomMode = true; + this.hc.TabIndex = 12; + this.hc.Text = "00"; + this.hc.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // mc + // + this.mc.BackColor = System.Drawing.Color.Transparent; + this.mc.Font = new System.Drawing.Font("微软雅黑", 12F); + this.mc.Location = new System.Drawing.Point(73, 73); + this.mc.Name = "mc"; + this.mc.Size = new System.Drawing.Size(35, 22); + this.mc.StyleCustomMode = true; + this.mc.TabIndex = 13; + this.mc.Text = "00"; + this.mc.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // sc + // + this.sc.BackColor = System.Drawing.Color.Transparent; + this.sc.Font = new System.Drawing.Font("微软雅黑", 12F); + this.sc.Location = new System.Drawing.Point(126, 73); + this.sc.Name = "sc"; + this.sc.Size = new System.Drawing.Size(35, 22); + this.sc.StyleCustomMode = true; + this.sc.TabIndex = 14; + this.sc.Text = "00"; + this.sc.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // st + // + this.st.BackColor = System.Drawing.Color.Transparent; + this.st.Font = new System.Drawing.Font("微软雅黑", 12F); + this.st.ForeColor = System.Drawing.Color.Gray; + this.st.Location = new System.Drawing.Point(126, 40); + this.st.Name = "st"; + this.st.Size = new System.Drawing.Size(35, 22); + this.st.StyleCustomMode = true; + this.st.TabIndex = 17; + this.st.Text = "00"; + this.st.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // mt + // + this.mt.BackColor = System.Drawing.Color.Transparent; + this.mt.Font = new System.Drawing.Font("微软雅黑", 12F); + this.mt.ForeColor = System.Drawing.Color.Gray; + this.mt.Location = new System.Drawing.Point(73, 40); + this.mt.Name = "mt"; + this.mt.Size = new System.Drawing.Size(35, 22); + this.mt.StyleCustomMode = true; + this.mt.TabIndex = 16; + this.mt.Text = "00"; + this.mt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // ht + // + this.ht.BackColor = System.Drawing.Color.Transparent; + this.ht.Font = new System.Drawing.Font("微软雅黑", 12F); + this.ht.ForeColor = System.Drawing.Color.Gray; + this.ht.Location = new System.Drawing.Point(20, 40); + this.ht.Name = "ht"; + this.ht.Size = new System.Drawing.Size(35, 22); + this.ht.StyleCustomMode = true; + this.ht.TabIndex = 15; + this.ht.Text = "00"; + this.ht.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // sb + // + this.sb.BackColor = System.Drawing.Color.Transparent; + this.sb.Font = new System.Drawing.Font("微软雅黑", 12F); + this.sb.ForeColor = System.Drawing.Color.Gray; + this.sb.Location = new System.Drawing.Point(126, 106); + this.sb.Name = "sb"; + this.sb.Size = new System.Drawing.Size(35, 22); + this.sb.StyleCustomMode = true; + this.sb.TabIndex = 20; + this.sb.Text = "00"; + this.sb.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // mb + // + this.mb.BackColor = System.Drawing.Color.Transparent; + this.mb.Font = new System.Drawing.Font("微软雅黑", 12F); + this.mb.ForeColor = System.Drawing.Color.Gray; + this.mb.Location = new System.Drawing.Point(73, 106); + this.mb.Name = "mb"; + this.mb.Size = new System.Drawing.Size(35, 22); + this.mb.StyleCustomMode = true; + this.mb.TabIndex = 19; + this.mb.Text = "00"; + this.mb.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // hb + // + this.hb.BackColor = System.Drawing.Color.Transparent; + this.hb.Font = new System.Drawing.Font("微软雅黑", 12F); + this.hb.ForeColor = System.Drawing.Color.Gray; + this.hb.Location = new System.Drawing.Point(20, 106); + this.hb.Name = "hb"; + this.hb.Size = new System.Drawing.Size(35, 22); + this.hb.StyleCustomMode = true; + this.hb.TabIndex = 18; + this.hb.Text = "00"; + this.hb.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // UITimeItem + // + this.Controls.Add(this.sb); + this.Controls.Add(this.mb); + this.Controls.Add(this.hb); + this.Controls.Add(this.st); + this.Controls.Add(this.mt); + this.Controls.Add(this.ht); + this.Controls.Add(this.sc); + this.Controls.Add(this.mc); + this.Controls.Add(this.hc); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnOK); + this.Controls.Add(this.s2); + this.Controls.Add(this.m2); + this.Controls.Add(this.h2); + this.Controls.Add(this.s1); + this.Controls.Add(this.m1); + this.Controls.Add(this.h1); + this.Controls.Add(this.uiLine2); + this.Controls.Add(this.uiLine1); + this.Name = "UITimeItem"; + this.Size = new System.Drawing.Size(179, 200); + this.ResumeLayout(false); + } + + private void h1_Click(object sender, EventArgs e) + { + Hour = (hour - 1 + 24).Mod(24); + ShowOther(); + } + + private void m1_Click(object sender, EventArgs e) + { + Minute = (Minute - 1 + 60).Mod(60); + ShowOther(); + } + + private void s1_Click(object sender, EventArgs e) + { + Second = (Second - 1 + 60).Mod(60); + ShowOther(); + } + + private void h2_Click(object sender, EventArgs e) + { + Hour = (hour + 1 + 24).Mod(24); + ShowOther(); + } + + private void m2_Click(object sender, EventArgs e) + { + Minute = (Minute + 1 + 60).Mod(60); + ShowOther(); + } + + private void s2_Click(object sender, EventArgs e) + { + Second = (Second + 1 + 60).Mod(60); + ShowOther(); + } + + private void btnOK_Click(object sender, EventArgs e) + { + time = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, Hour, Minute, Second); + DoValueChanged(this, time); + CloseParent(); + } + + private void btnCancel_Click(object sender, EventArgs e) + { + CloseParent(); + } + } +} \ No newline at end of file diff --git a/SunnyUI/Controls/DropItem/UITimeItem.resx b/SunnyUI/Controls/DropItem/UITimeItem.resx new file mode 100644 index 00000000..1af7de15 --- /dev/null +++ b/SunnyUI/Controls/DropItem/UITimeItem.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SunnyUI/Controls/UIDatePicker.cs b/SunnyUI/Controls/UIDatePicker.cs index 4727ec6b..86fa438f 100644 --- a/SunnyUI/Controls/UIDatePicker.cs +++ b/SunnyUI/Controls/UIDatePicker.cs @@ -46,33 +46,27 @@ namespace Sunny.UI ValueChanged?.Invoke(this, Value); } - private readonly UIDateTimeControl item = new UIDateTimeControl(); + private readonly UIDateTimeItem item = new UIDateTimeItem(); protected override void CreateInstance() { ItemForm = new UIDropDown(item); } - private MonthCalendar MonthCalendar - { - get - { - return item.MonthCalendar; - } - } - public DateTime Value { - get => MonthCalendar.SelectionStart.Date; + get => item.Date; set { Text = value.ToString(dateFormat); - MonthCalendar.SelectionStart = value; + item.Date = value; } } private void UIDatetimePicker_ButtonClick(object sender, EventArgs e) { + item.Date = Value; + Application.DoEvents(); ItemForm.Show(this); } diff --git a/SunnyUI/Controls/UILine.cs b/SunnyUI/Controls/UILine.cs index 2d85743d..e1421ace 100644 --- a/SunnyUI/Controls/UILine.cs +++ b/SunnyUI/Controls/UILine.cs @@ -132,6 +132,8 @@ namespace Sunny.UI protected override void OnPaintFore(Graphics g, GraphicsPath path) { + if (Text.IsNullOrEmpty()) return; + SizeF sf = g.MeasureString(Text, Font); if (Direction == LineDirection.Horizontal) diff --git a/SunnyUI/Controls/UITimePicker.cs b/SunnyUI/Controls/UITimePicker.cs new file mode 100644 index 00000000..6d27bd5d --- /dev/null +++ b/SunnyUI/Controls/UITimePicker.cs @@ -0,0 +1,104 @@ +/****************************************************************************** + * SunnyUI 开源控件库、工具类库、扩展类库、多页面开发框架。 + * CopyRight (C) 2012-2020 ShenYongHua(沈永华). + * QQ群:56829229 QQ:17612584 EMail:SunnyUI@qq.com + * + * Blog: https://www.cnblogs.com/yhuse + * Gitee: https://gitee.com/yhuse/SunnyUI + * GitHub: https://github.com/yhuse/SunnyUI + * + * SunnyUI.dll can be used for free under the GPL-3.0 license. + * If you use this code, please keep this note. + * 如果您使用此代码,请保留此说明。 + ****************************************************************************** + * 文件名称: UIDatePicker.cs + * 文件说明: 时间选择框 + * 当前版本: V2.2 + * 创建日期: 2020-05-29 + * + * 2020-05-29: V2.2.5 增加文件 +******************************************************************************/ + +using System; +using System.ComponentModel; +using System.Windows.Forms; + +namespace Sunny.UI +{ + [ToolboxItem(true)] + public sealed partial class UITimePicker : UIDropControl + { + private void InitializeComponent() + { + this.SuspendLayout(); + // + // UITimePicker + // + this.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; + this.Name = "UITimePicker"; + this.Padding = new System.Windows.Forms.Padding(0, 0, 30, 0); + this.SymbolDropDown = 61555; + this.SymbolNormal = 61555; + this.ButtonClick += new System.EventHandler(this.UITimePicker_ButtonClick); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + public UITimePicker() + { + InitializeComponent(); + Value = DateTime.Now; + } + + public delegate void OnDateTimeChanged(object sender, DateTime value); + + public event OnDateTimeChanged ValueChanged; + + protected override void ItemForm_ValueChanged(object sender, object value) + { + Value = (DateTime)value; + Text = Value.ToString(timeFormat); + Invalidate(); + ValueChanged?.Invoke(this, Value); + } + + private readonly UITimeItem item = new UITimeItem(); + + protected override void CreateInstance() + { + ItemForm = new UIDropDown(item); + } + + public DateTime Value + { + get => item.Time; + set + { + Text = value.ToString(timeFormat); + item.Time = value; + } + } + + private string timeFormat = "HH:mm:ss"; + + [Description("时间格式化掩码"), Category("自定义")] + [DefaultValue("HH:mm:ss")] + public string TimeFormat + { + get => timeFormat; + set + { + timeFormat = value; + Text = Value.ToString(timeFormat); + } + } + + private void UITimePicker_ButtonClick(object sender, EventArgs e) + { + item.Time = Value; + Application.DoEvents(); + ItemForm.Show(this); + } + } +} \ No newline at end of file diff --git a/SunnyUI/Controls/UITimePicker.resx b/SunnyUI/Controls/UITimePicker.resx new file mode 100644 index 00000000..1af7de15 --- /dev/null +++ b/SunnyUI/Controls/UITimePicker.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SunnyUI/SunnyUI.csproj b/SunnyUI/SunnyUI.csproj index 207b8b91..0a22826e 100644 --- a/SunnyUI/SunnyUI.csproj +++ b/SunnyUI/SunnyUI.csproj @@ -60,9 +60,6 @@ UserControl - - UIDateTimeItem.cs - Component @@ -72,6 +69,12 @@ UIDropDownItem.cs + + UserControl + + + UserControl + Form @@ -421,6 +424,12 @@ UIComboBoxItem.cs + + UITimeItem.cs + + + UITimePicker.cs + UINotifier.cs diff --git a/Updates.txt b/Updates.txt index c4951059..dab7c2e3 100644 --- a/Updates.txt +++ b/Updates.txt @@ -1,5 +1,9 @@ + ӣ - ɾ * ޸ +2020.05.29 +* UIDatePickerдѡ ++ UITimePicker + 2020.05.28 * UIForm˵ƶķԼ˫/