diff --git a/SunnyUI/Controls/DropItem/UIDateTimeItem.cs b/SunnyUI/Controls/DropItem/UIDateTimeItem.cs index 31ee0031..cafdc06b 100644 --- a/SunnyUI/Controls/DropItem/UIDateTimeItem.cs +++ b/SunnyUI/Controls/DropItem/UIDateTimeItem.cs @@ -20,6 +20,7 @@ * 2020-05-29: V2.2.5 重写 * 2020-07-08: V2.2.6 重写下拉窗体,缩短创建时间 * 2023-05-13: V3.3.6 重构DrawString函数 + * 2024-07-14: V3.6.7 修改时间界面水平分割线颜色和位置 ******************************************************************************/ using System; @@ -61,662 +62,627 @@ namespace Sunny.UI private UISymbolButton s1; private UISymbolButton mm1; private UISymbolButton h1; - private UILine uiLine2; - private UILine uiLine3; private UIPanel uiPanel1; 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.p1 = new Sunny.UI.UIPanel(); - this.tabPage2 = new System.Windows.Forms.TabPage(); - this.p2 = new Sunny.UI.UIPanel(); - this.tabPage3 = new System.Windows.Forms.TabPage(); - this.p3 = new Sunny.UI.UIPanel(); - this.sb = new Sunny.UI.UILabel(); - this.mb = new Sunny.UI.UILabel(); - this.hb = new Sunny.UI.UILabel(); - this.st = new Sunny.UI.UILabel(); - this.mt = new Sunny.UI.UILabel(); - this.ht = new Sunny.UI.UILabel(); - this.sc = new Sunny.UI.UILabel(); - this.mc = new Sunny.UI.UILabel(); - this.hc = new Sunny.UI.UILabel(); - this.btnCancel = new Sunny.UI.UISymbolButton(); - this.btnOK = new Sunny.UI.UISymbolButton(); - this.s2 = new Sunny.UI.UISymbolButton(); - this.mm2 = new Sunny.UI.UISymbolButton(); - this.h2 = new Sunny.UI.UISymbolButton(); - this.s1 = new Sunny.UI.UISymbolButton(); - this.mm1 = new Sunny.UI.UISymbolButton(); - this.h1 = new Sunny.UI.UISymbolButton(); - this.uiLine2 = new Sunny.UI.UILine(); - this.uiLine3 = new Sunny.UI.UILine(); - this.uiPanel1 = new Sunny.UI.UIPanel(); - this.TopPanel.SuspendLayout(); - this.TabControl.SuspendLayout(); - this.tabPage1.SuspendLayout(); - this.tabPage2.SuspendLayout(); - this.tabPage3.SuspendLayout(); - this.uiPanel1.SuspendLayout(); - this.SuspendLayout(); + TopPanel = new UIPanel(); + b4 = new UISymbolButton(); + b3 = new UISymbolButton(); + b2 = new UISymbolButton(); + b1 = new UISymbolButton(); + TabControl = new UITabControl(); + tabPage1 = new TabPage(); + p1 = new UIPanel(); + tabPage2 = new TabPage(); + p2 = new UIPanel(); + tabPage3 = new TabPage(); + p3 = new UIPanel(); + sb = new UILabel(); + mb = new UILabel(); + hb = new UILabel(); + st = new UILabel(); + mt = new UILabel(); + ht = new UILabel(); + sc = new UILabel(); + mc = new UILabel(); + hc = new UILabel(); + btnCancel = new UISymbolButton(); + btnOK = new UISymbolButton(); + s2 = new UISymbolButton(); + mm2 = new UISymbolButton(); + h2 = new UISymbolButton(); + s1 = new UISymbolButton(); + mm1 = new UISymbolButton(); + h1 = new UISymbolButton(); + uiPanel1 = new UIPanel(); + TopPanel.SuspendLayout(); + TabControl.SuspendLayout(); + tabPage1.SuspendLayout(); + tabPage2.SuspendLayout(); + tabPage3.SuspendLayout(); + uiPanel1.SuspendLayout(); + 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.FillColor = System.Drawing.Color.White; - this.TopPanel.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.TopPanel.Location = new System.Drawing.Point(0, 0); - this.TopPanel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.TopPanel.MinimumSize = new System.Drawing.Size(1, 1); - 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(284, 31); - this.TopPanel.Style = Sunny.UI.UIStyle.Custom; - this.TopPanel.StyleCustomMode = true; - this.TopPanel.TabIndex = 0; - this.TopPanel.Text = "2020-05-05"; - this.TopPanel.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - this.TopPanel.Click += new System.EventHandler(this.TopPanel_Click); + TopPanel.Controls.Add(b4); + TopPanel.Controls.Add(b3); + TopPanel.Controls.Add(b2); + TopPanel.Controls.Add(b1); + TopPanel.Dock = DockStyle.Top; + TopPanel.FillColor = Color.White; + TopPanel.Font = new Font("宋体", 12F); + TopPanel.Location = new Point(0, 0); + TopPanel.Margin = new Padding(4, 5, 4, 5); + TopPanel.MinimumSize = new Size(1, 1); + TopPanel.Name = "TopPanel"; + TopPanel.RadiusSides = UICornerRadiusSides.None; + TopPanel.RectSides = ToolStripStatusLabelBorderSides.Left | ToolStripStatusLabelBorderSides.Top | ToolStripStatusLabelBorderSides.Right; + TopPanel.Size = new Size(284, 31); + TopPanel.Style = UIStyle.Custom; + TopPanel.StyleCustomMode = true; + TopPanel.TabIndex = 0; + TopPanel.Text = "2020-05-05"; + TopPanel.TextAlignment = ContentAlignment.MiddleCenter; + TopPanel.Click += 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.White; - this.b4.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.b4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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(250, 4); - this.b4.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.b4.StyleCustomMode = true; - this.b4.Symbol = 61697; - this.b4.TabIndex = 3; - this.b4.Click += new System.EventHandler(this.b4_Click); + b4.Anchor = AnchorStyles.Top | AnchorStyles.Right; + b4.BackColor = Color.Transparent; + b4.Cursor = Cursors.Hand; + b4.FillColor = Color.White; + b4.FillHoverColor = Color.FromArgb(80, 160, 255); + b4.Font = new Font("宋体", 12F); + b4.ForeColor = Color.FromArgb(80, 160, 255); + b4.Location = new Point(250, 4); + b4.MinimumSize = new Size(1, 1); + b4.Name = "b4"; + b4.Padding = new Padding(24, 0, 0, 0); + b4.RadiusSides = UICornerRadiusSides.None; + b4.RectHoverColor = Color.FromArgb(80, 160, 255); + b4.RectSides = ToolStripStatusLabelBorderSides.None; + b4.Size = new Size(30, 24); + b4.Style = UIStyle.Custom; + b4.StyleCustomMode = true; + b4.Symbol = 61697; + b4.TabIndex = 3; + b4.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + b4.Click += 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.White; - this.b3.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.b3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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(214, 4); - this.b3.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.b3.StyleCustomMode = true; - this.b3.Symbol = 61701; - this.b3.TabIndex = 2; - this.b3.Click += new System.EventHandler(this.b3_Click); + b3.Anchor = AnchorStyles.Top | AnchorStyles.Right; + b3.BackColor = Color.Transparent; + b3.Cursor = Cursors.Hand; + b3.FillColor = Color.White; + b3.FillHoverColor = Color.FromArgb(80, 160, 255); + b3.Font = new Font("宋体", 12F); + b3.ForeColor = Color.FromArgb(80, 160, 255); + b3.Location = new Point(214, 4); + b3.MinimumSize = new Size(1, 1); + b3.Name = "b3"; + b3.Padding = new Padding(24, 0, 0, 0); + b3.RadiusSides = UICornerRadiusSides.None; + b3.RectHoverColor = Color.FromArgb(80, 160, 255); + b3.RectSides = ToolStripStatusLabelBorderSides.None; + b3.Size = new Size(30, 24); + b3.Style = UIStyle.Custom; + b3.StyleCustomMode = true; + b3.Symbol = 61701; + b3.TabIndex = 2; + b3.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + b3.Click += b3_Click; // // b2 // - this.b2.BackColor = System.Drawing.Color.Transparent; - this.b2.Cursor = System.Windows.Forms.Cursors.Hand; - this.b2.FillColor = System.Drawing.Color.White; - this.b2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.b2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.b2.StyleCustomMode = true; - this.b2.Symbol = 61700; - this.b2.TabIndex = 1; - this.b2.Click += new System.EventHandler(this.b2_Click); + b2.BackColor = Color.Transparent; + b2.Cursor = Cursors.Hand; + b2.FillColor = Color.White; + b2.FillHoverColor = Color.FromArgb(80, 160, 255); + b2.Font = new Font("宋体", 12F); + b2.ForeColor = Color.FromArgb(80, 160, 255); + b2.Location = new Point(40, 4); + b2.MinimumSize = new Size(1, 1); + b2.Name = "b2"; + b2.Padding = new Padding(24, 0, 0, 0); + b2.RadiusSides = UICornerRadiusSides.None; + b2.RectHoverColor = Color.FromArgb(80, 160, 255); + b2.RectSides = ToolStripStatusLabelBorderSides.None; + b2.Size = new Size(30, 24); + b2.Style = UIStyle.Custom; + b2.StyleCustomMode = true; + b2.Symbol = 61700; + b2.TabIndex = 1; + b2.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + b2.Click += b2_Click; // // b1 // - this.b1.BackColor = System.Drawing.Color.Transparent; - this.b1.Cursor = System.Windows.Forms.Cursors.Hand; - this.b1.FillColor = System.Drawing.Color.White; - this.b1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.b1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.b1.StyleCustomMode = true; - this.b1.Symbol = 61696; - this.b1.TabIndex = 0; - this.b1.Click += new System.EventHandler(this.b1_Click); + b1.BackColor = Color.Transparent; + b1.Cursor = Cursors.Hand; + b1.FillColor = Color.White; + b1.FillHoverColor = Color.FromArgb(80, 160, 255); + b1.Font = new Font("宋体", 12F); + b1.ForeColor = Color.FromArgb(80, 160, 255); + b1.Location = new Point(4, 4); + b1.MinimumSize = new Size(1, 1); + b1.Name = "b1"; + b1.Padding = new Padding(24, 0, 0, 0); + b1.RadiusSides = UICornerRadiusSides.None; + b1.RectHoverColor = Color.FromArgb(80, 160, 255); + b1.RectSides = ToolStripStatusLabelBorderSides.None; + b1.Size = new Size(30, 24); + b1.Style = UIStyle.Custom; + b1.StyleCustomMode = true; + b1.Symbol = 61696; + b1.TabIndex = 0; + b1.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + b1.Click += 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, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.TabControl.ItemSize = new System.Drawing.Size(150, 40); - this.TabControl.Location = new System.Drawing.Point(0, 31); - this.TabControl.MainPage = ""; - this.TabControl.MenuStyle = Sunny.UI.UIMenuStyle.Custom; - this.TabControl.Name = "TabControl"; - this.TabControl.SelectedIndex = 0; - this.TabControl.Size = new System.Drawing.Size(284, 204); - this.TabControl.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; - this.TabControl.Style = Sunny.UI.UIStyle.Custom; - this.TabControl.TabIndex = 1; - this.TabControl.TabUnSelectedForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); - this.TabControl.SelectedIndexChanged += new System.EventHandler(this.TabControl_SelectedIndexChanged); + TabControl.Controls.Add(tabPage1); + TabControl.Controls.Add(tabPage2); + TabControl.Controls.Add(tabPage3); + TabControl.Dock = DockStyle.Fill; + TabControl.DrawMode = TabDrawMode.OwnerDrawFixed; + TabControl.Font = new Font("宋体", 12F); + TabControl.ItemSize = new Size(150, 40); + TabControl.Location = new Point(0, 31); + TabControl.MainPage = ""; + TabControl.MenuStyle = UIMenuStyle.Custom; + TabControl.Name = "TabControl"; + TabControl.SelectedIndex = 0; + TabControl.Size = new Size(284, 204); + TabControl.SizeMode = TabSizeMode.Fixed; + TabControl.Style = UIStyle.Custom; + TabControl.TabIndex = 1; + TabControl.TabUnSelectedForeColor = Color.FromArgb(240, 240, 240); + TabControl.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + TabControl.SelectedIndexChanged += TabControl_SelectedIndexChanged; // // tabPage1 // - this.tabPage1.Controls.Add(this.p1); - this.tabPage1.Location = new System.Drawing.Point(0, 40); - this.tabPage1.Name = "tabPage1"; - this.tabPage1.Size = new System.Drawing.Size(284, 164); - this.tabPage1.TabIndex = 0; - this.tabPage1.Text = "tabPage1"; - this.tabPage1.UseVisualStyleBackColor = true; + tabPage1.Controls.Add(p1); + tabPage1.Location = new Point(0, 40); + tabPage1.Name = "tabPage1"; + tabPage1.Size = new Size(284, 164); + tabPage1.TabIndex = 0; + tabPage1.Text = "tabPage1"; + tabPage1.UseVisualStyleBackColor = true; // // p1 // - this.p1.Dock = System.Windows.Forms.DockStyle.Fill; - this.p1.FillColor = System.Drawing.Color.White; - this.p1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.p1.Location = new System.Drawing.Point(0, 0); - this.p1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.p1.MinimumSize = new System.Drawing.Size(1, 1); - this.p1.Name = "p1"; - this.p1.RadiusSides = Sunny.UI.UICornerRadiusSides.None; - this.p1.Size = new System.Drawing.Size(284, 164); - this.p1.Style = Sunny.UI.UIStyle.Custom; - this.p1.TabIndex = 0; - this.p1.Text = null; - this.p1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - this.p1.Paint += new System.Windows.Forms.PaintEventHandler(this.p1_Paint); - this.p1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.p1_MouseClick); - this.p1.MouseLeave += new System.EventHandler(this.p1_MouseLeave); - this.p1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.p1_MouseMove); + p1.Dock = DockStyle.Fill; + p1.FillColor = Color.White; + p1.Font = new Font("宋体", 12F); + p1.Location = new Point(0, 0); + p1.Margin = new Padding(4, 5, 4, 5); + p1.MinimumSize = new Size(1, 1); + p1.Name = "p1"; + p1.RadiusSides = UICornerRadiusSides.None; + p1.Size = new Size(284, 164); + p1.Style = UIStyle.Custom; + p1.TabIndex = 0; + p1.Text = null; + p1.TextAlignment = ContentAlignment.MiddleCenter; + p1.Paint += p1_Paint; + p1.MouseClick += p1_MouseClick; + p1.MouseLeave += p1_MouseLeave; + p1.MouseMove += p1_MouseMove; // // tabPage2 // - this.tabPage2.Controls.Add(this.p2); - this.tabPage2.Location = new System.Drawing.Point(0, 40); - this.tabPage2.Name = "tabPage2"; - this.tabPage2.Size = new System.Drawing.Size(200, 60); - this.tabPage2.TabIndex = 1; - this.tabPage2.Text = "tabPage2"; - this.tabPage2.UseVisualStyleBackColor = true; + tabPage2.Controls.Add(p2); + tabPage2.Location = new Point(0, 40); + tabPage2.Name = "tabPage2"; + tabPage2.Size = new Size(200, 60); + tabPage2.TabIndex = 1; + tabPage2.Text = "tabPage2"; + tabPage2.UseVisualStyleBackColor = true; // // p2 // - this.p2.Dock = System.Windows.Forms.DockStyle.Fill; - this.p2.FillColor = System.Drawing.Color.White; - this.p2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.p2.Location = new System.Drawing.Point(0, 0); - this.p2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.p2.MinimumSize = new System.Drawing.Size(1, 1); - this.p2.Name = "p2"; - this.p2.RadiusSides = Sunny.UI.UICornerRadiusSides.None; - this.p2.Size = new System.Drawing.Size(200, 60); - this.p2.Style = Sunny.UI.UIStyle.Custom; - this.p2.TabIndex = 1; - this.p2.Text = null; - this.p2.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - this.p2.Paint += new System.Windows.Forms.PaintEventHandler(this.p2_Paint); - this.p2.MouseClick += new System.Windows.Forms.MouseEventHandler(this.p2_MouseClick); - this.p2.MouseLeave += new System.EventHandler(this.p2_MouseLeave); - this.p2.MouseMove += new System.Windows.Forms.MouseEventHandler(this.p2_MouseMove); + p2.Dock = DockStyle.Fill; + p2.FillColor = Color.White; + p2.Font = new Font("宋体", 12F); + p2.Location = new Point(0, 0); + p2.Margin = new Padding(4, 5, 4, 5); + p2.MinimumSize = new Size(1, 1); + p2.Name = "p2"; + p2.RadiusSides = UICornerRadiusSides.None; + p2.Size = new Size(200, 60); + p2.Style = UIStyle.Custom; + p2.TabIndex = 1; + p2.Text = null; + p2.TextAlignment = ContentAlignment.MiddleCenter; + p2.Paint += p2_Paint; + p2.MouseClick += p2_MouseClick; + p2.MouseLeave += p2_MouseLeave; + p2.MouseMove += p2_MouseMove; // // tabPage3 // - this.tabPage3.Controls.Add(this.p3); - this.tabPage3.Location = new System.Drawing.Point(0, 40); - this.tabPage3.Name = "tabPage3"; - this.tabPage3.Size = new System.Drawing.Size(200, 60); - this.tabPage3.TabIndex = 2; - this.tabPage3.Text = "tabPage3"; - this.tabPage3.UseVisualStyleBackColor = true; + tabPage3.Controls.Add(p3); + tabPage3.Location = new Point(0, 40); + tabPage3.Name = "tabPage3"; + tabPage3.Size = new Size(200, 60); + tabPage3.TabIndex = 2; + tabPage3.Text = "tabPage3"; + tabPage3.UseVisualStyleBackColor = true; // // p3 // - this.p3.Dock = System.Windows.Forms.DockStyle.Fill; - this.p3.FillColor = System.Drawing.Color.White; - this.p3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.p3.Location = new System.Drawing.Point(0, 0); - this.p3.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.p3.MinimumSize = new System.Drawing.Size(1, 1); - this.p3.Name = "p3"; - this.p3.RadiusSides = Sunny.UI.UICornerRadiusSides.None; - this.p3.Size = new System.Drawing.Size(200, 60); - this.p3.Style = Sunny.UI.UIStyle.Custom; - this.p3.TabIndex = 2; - this.p3.Text = null; - this.p3.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - this.p3.Paint += new System.Windows.Forms.PaintEventHandler(this.p3_Paint); - this.p3.MouseClick += new System.Windows.Forms.MouseEventHandler(this.p3_MouseClick); - this.p3.MouseLeave += new System.EventHandler(this.p3_MouseLeave); - this.p3.MouseMove += new System.Windows.Forms.MouseEventHandler(this.p3_MouseMove); + p3.Dock = DockStyle.Fill; + p3.FillColor = Color.White; + p3.Font = new Font("宋体", 12F); + p3.Location = new Point(0, 0); + p3.Margin = new Padding(4, 5, 4, 5); + p3.MinimumSize = new Size(1, 1); + p3.Name = "p3"; + p3.RadiusSides = UICornerRadiusSides.None; + p3.Size = new Size(200, 60); + p3.Style = UIStyle.Custom; + p3.TabIndex = 2; + p3.Text = null; + p3.TextAlignment = ContentAlignment.MiddleCenter; + p3.Paint += p3_Paint; + p3.MouseClick += p3_MouseClick; + p3.MouseLeave += p3_MouseLeave; + p3.MouseMove += p3_MouseMove; // // sb // - this.sb.BackColor = System.Drawing.Color.Transparent; - this.sb.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.sb.ForeColor = System.Drawing.Color.DarkGray; - this.sb.Location = new System.Drawing.Point(398, 103); - this.sb.Name = "sb"; - this.sb.Size = new System.Drawing.Size(46, 22); - this.sb.StyleCustomMode = true; - this.sb.TabIndex = 39; - this.sb.Text = "00"; - this.sb.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + sb.BackColor = Color.Transparent; + sb.Font = new Font("宋体", 12F); + sb.ForeColor = Color.DarkGray; + sb.Location = new Point(398, 103); + sb.Name = "sb"; + sb.Size = new Size(46, 22); + sb.StyleCustomMode = true; + sb.TabIndex = 39; + sb.Text = "00"; + sb.TextAlign = ContentAlignment.MiddleCenter; // // mb // - this.mb.BackColor = System.Drawing.Color.Transparent; - this.mb.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.mb.ForeColor = System.Drawing.Color.DarkGray; - this.mb.Location = new System.Drawing.Point(345, 103); - this.mb.Name = "mb"; - this.mb.Size = new System.Drawing.Size(46, 22); - this.mb.StyleCustomMode = true; - this.mb.TabIndex = 38; - this.mb.Text = "00"; - this.mb.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + mb.BackColor = Color.Transparent; + mb.Font = new Font("宋体", 12F); + mb.ForeColor = Color.DarkGray; + mb.Location = new Point(345, 103); + mb.Name = "mb"; + mb.Size = new Size(46, 22); + mb.StyleCustomMode = true; + mb.TabIndex = 38; + mb.Text = "00"; + mb.TextAlign = ContentAlignment.MiddleCenter; // // hb // - this.hb.BackColor = System.Drawing.Color.Transparent; - this.hb.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.hb.ForeColor = System.Drawing.Color.DarkGray; - this.hb.Location = new System.Drawing.Point(292, 103); - this.hb.Name = "hb"; - this.hb.Size = new System.Drawing.Size(46, 22); - this.hb.StyleCustomMode = true; - this.hb.TabIndex = 37; - this.hb.Text = "00"; - this.hb.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + hb.BackColor = Color.Transparent; + hb.Font = new Font("宋体", 12F); + hb.ForeColor = Color.DarkGray; + hb.Location = new Point(292, 103); + hb.Name = "hb"; + hb.Size = new Size(46, 22); + hb.StyleCustomMode = true; + hb.TabIndex = 37; + hb.Text = "00"; + hb.TextAlign = ContentAlignment.MiddleCenter; // // st // - this.st.BackColor = System.Drawing.Color.Transparent; - this.st.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.st.ForeColor = System.Drawing.Color.DarkGray; - this.st.Location = new System.Drawing.Point(398, 31); - this.st.Name = "st"; - this.st.Size = new System.Drawing.Size(46, 22); - this.st.StyleCustomMode = true; - this.st.TabIndex = 36; - this.st.Text = "00"; - this.st.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + st.BackColor = Color.Transparent; + st.Font = new Font("宋体", 12F); + st.ForeColor = Color.DarkGray; + st.Location = new Point(398, 31); + st.Name = "st"; + st.Size = new Size(46, 22); + st.StyleCustomMode = true; + st.TabIndex = 36; + st.Text = "00"; + st.TextAlign = ContentAlignment.MiddleCenter; // // mt // - this.mt.BackColor = System.Drawing.Color.Transparent; - this.mt.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.mt.ForeColor = System.Drawing.Color.DarkGray; - this.mt.Location = new System.Drawing.Point(345, 31); - this.mt.Name = "mt"; - this.mt.Size = new System.Drawing.Size(46, 22); - this.mt.StyleCustomMode = true; - this.mt.TabIndex = 35; - this.mt.Text = "00"; - this.mt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + mt.BackColor = Color.Transparent; + mt.Font = new Font("宋体", 12F); + mt.ForeColor = Color.DarkGray; + mt.Location = new Point(345, 31); + mt.Name = "mt"; + mt.Size = new Size(46, 22); + mt.StyleCustomMode = true; + mt.TabIndex = 35; + mt.Text = "00"; + mt.TextAlign = ContentAlignment.MiddleCenter; // // ht // - this.ht.BackColor = System.Drawing.Color.Transparent; - this.ht.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.ht.ForeColor = System.Drawing.Color.DarkGray; - this.ht.Location = new System.Drawing.Point(292, 31); - this.ht.Name = "ht"; - this.ht.Size = new System.Drawing.Size(46, 22); - this.ht.StyleCustomMode = true; - this.ht.TabIndex = 34; - this.ht.Text = "00"; - this.ht.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + ht.BackColor = Color.Transparent; + ht.Font = new Font("宋体", 12F); + ht.ForeColor = Color.DarkGray; + ht.Location = new Point(292, 31); + ht.Name = "ht"; + ht.Size = new Size(46, 22); + ht.StyleCustomMode = true; + ht.TabIndex = 34; + ht.Text = "00"; + ht.TextAlign = ContentAlignment.MiddleCenter; // // sc // - this.sc.BackColor = System.Drawing.Color.Transparent; - this.sc.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.sc.Location = new System.Drawing.Point(398, 65); - this.sc.Name = "sc"; - this.sc.Size = new System.Drawing.Size(46, 27); - this.sc.StyleCustomMode = true; - this.sc.TabIndex = 33; - this.sc.Text = "00"; - this.sc.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.sc.DoubleClick += new System.EventHandler(this.sc_DoubleClick); + sc.BackColor = Color.Transparent; + sc.Font = new Font("宋体", 12F); + sc.ForeColor = Color.FromArgb(48, 48, 48); + sc.Location = new Point(398, 65); + sc.Name = "sc"; + sc.Size = new Size(46, 27); + sc.StyleCustomMode = true; + sc.TabIndex = 33; + sc.Text = "00"; + sc.TextAlign = ContentAlignment.MiddleCenter; + sc.DoubleClick += sc_DoubleClick; // // mc // - this.mc.BackColor = System.Drawing.Color.Transparent; - this.mc.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.mc.Location = new System.Drawing.Point(345, 65); - this.mc.Name = "mc"; - this.mc.Size = new System.Drawing.Size(46, 27); - this.mc.StyleCustomMode = true; - this.mc.TabIndex = 32; - this.mc.Text = "00"; - this.mc.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.mc.DoubleClick += new System.EventHandler(this.mc_DoubleClick); + mc.BackColor = Color.Transparent; + mc.Font = new Font("宋体", 12F); + mc.ForeColor = Color.FromArgb(48, 48, 48); + mc.Location = new Point(345, 65); + mc.Name = "mc"; + mc.Size = new Size(46, 27); + mc.StyleCustomMode = true; + mc.TabIndex = 32; + mc.Text = "00"; + mc.TextAlign = ContentAlignment.MiddleCenter; + mc.DoubleClick += mc_DoubleClick; // // hc // - this.hc.BackColor = System.Drawing.Color.Transparent; - this.hc.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.hc.Location = new System.Drawing.Point(292, 65); - this.hc.Name = "hc"; - this.hc.Size = new System.Drawing.Size(46, 27); - this.hc.StyleCustomMode = true; - this.hc.TabIndex = 31; - this.hc.Text = "00"; - this.hc.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.hc.DoubleClick += new System.EventHandler(this.hc_DoubleClick); + hc.BackColor = Color.Transparent; + hc.Font = new Font("宋体", 12F); + hc.ForeColor = Color.FromArgb(48, 48, 48); + hc.Location = new Point(292, 65); + hc.Name = "hc"; + hc.Size = new Size(46, 27); + hc.StyleCustomMode = true; + hc.TabIndex = 31; + hc.Text = "00"; + hc.TextAlign = ContentAlignment.MiddleCenter; + hc.DoubleClick += hc_DoubleClick; // // btnCancel // - this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnCancel.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.btnCancel.Location = new System.Drawing.Point(370, 162); - this.btnCancel.MinimumSize = new System.Drawing.Size(1, 1); - 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.Style = Sunny.UI.UIStyle.Custom; - this.btnCancel.Symbol = 0; - this.btnCancel.TabIndex = 30; - this.btnCancel.Text = "取消"; - this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + btnCancel.Cursor = Cursors.Hand; + btnCancel.Font = new Font("宋体", 12F); + btnCancel.Location = new Point(370, 162); + btnCancel.MinimumSize = new Size(1, 1); + btnCancel.Name = "btnCancel"; + btnCancel.Padding = new Padding(28, 0, 0, 0); + btnCancel.Size = new Size(74, 27); + btnCancel.Style = UIStyle.Custom; + btnCancel.Symbol = 0; + btnCancel.TabIndex = 30; + btnCancel.Text = "取消"; + btnCancel.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + btnCancel.Click += btnCancel_Click; // // btnOK // - this.btnOK.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnOK.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.btnOK.Location = new System.Drawing.Point(291, 162); - this.btnOK.MinimumSize = new System.Drawing.Size(1, 1); - 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.Style = Sunny.UI.UIStyle.Custom; - this.btnOK.Symbol = 0; - this.btnOK.TabIndex = 29; - this.btnOK.Text = "确定"; - this.btnOK.Click += new System.EventHandler(this.btnOK_Click); + btnOK.Cursor = Cursors.Hand; + btnOK.Font = new Font("宋体", 12F); + btnOK.Location = new Point(291, 162); + btnOK.MinimumSize = new Size(1, 1); + btnOK.Name = "btnOK"; + btnOK.Padding = new Padding(28, 0, 0, 0); + btnOK.Size = new Size(74, 27); + btnOK.Style = UIStyle.Custom; + btnOK.Symbol = 0; + btnOK.TabIndex = 29; + btnOK.Text = "确定"; + btnOK.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + btnOK.Click += btnOK_Click; // // s2 // - this.s2.BackColor = System.Drawing.Color.Transparent; - this.s2.Cursor = System.Windows.Forms.Cursors.Hand; - this.s2.FillColor = System.Drawing.Color.White; - this.s2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.s2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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(405, 129); - this.s2.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.s2.StyleCustomMode = true; - this.s2.Symbol = 61703; - this.s2.TabIndex = 28; - this.s2.Tag = "6"; - this.s2.Click += new System.EventHandler(this.s2_Click); + s2.BackColor = Color.Transparent; + s2.Cursor = Cursors.Hand; + s2.FillColor = Color.White; + s2.FillHoverColor = Color.FromArgb(80, 160, 255); + s2.Font = new Font("宋体", 12F); + s2.ForeColor = Color.FromArgb(80, 160, 255); + s2.Location = new Point(405, 129); + s2.MinimumSize = new Size(1, 1); + s2.Name = "s2"; + s2.Padding = new Padding(24, 0, 0, 0); + s2.RadiusSides = UICornerRadiusSides.None; + s2.RectHoverColor = Color.FromArgb(80, 160, 255); + s2.RectSides = ToolStripStatusLabelBorderSides.None; + s2.Size = new Size(30, 24); + s2.Style = UIStyle.Custom; + s2.StyleCustomMode = true; + s2.Symbol = 61703; + s2.TabIndex = 28; + s2.Tag = "6"; + s2.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + s2.Click += s2_Click; // // mm2 // - this.mm2.BackColor = System.Drawing.Color.Transparent; - this.mm2.Cursor = System.Windows.Forms.Cursors.Hand; - this.mm2.FillColor = System.Drawing.Color.White; - this.mm2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.mm2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.mm2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.mm2.ImageInterval = 0; - this.mm2.Location = new System.Drawing.Point(352, 129); - this.mm2.MinimumSize = new System.Drawing.Size(1, 1); - this.mm2.Name = "mm2"; - this.mm2.Padding = new System.Windows.Forms.Padding(24, 0, 0, 0); - this.mm2.RadiusSides = Sunny.UI.UICornerRadiusSides.None; - this.mm2.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.mm2.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; - this.mm2.Size = new System.Drawing.Size(30, 24); - this.mm2.Style = Sunny.UI.UIStyle.Custom; - this.mm2.StyleCustomMode = true; - this.mm2.Symbol = 61703; - this.mm2.TabIndex = 27; - this.mm2.Tag = "5"; - this.mm2.Click += new System.EventHandler(this.mm2_Click); + mm2.BackColor = Color.Transparent; + mm2.Cursor = Cursors.Hand; + mm2.FillColor = Color.White; + mm2.FillHoverColor = Color.FromArgb(80, 160, 255); + mm2.Font = new Font("宋体", 12F); + mm2.ForeColor = Color.FromArgb(80, 160, 255); + mm2.Location = new Point(352, 129); + mm2.MinimumSize = new Size(1, 1); + mm2.Name = "mm2"; + mm2.Padding = new Padding(24, 0, 0, 0); + mm2.RadiusSides = UICornerRadiusSides.None; + mm2.RectHoverColor = Color.FromArgb(80, 160, 255); + mm2.RectSides = ToolStripStatusLabelBorderSides.None; + mm2.Size = new Size(30, 24); + mm2.Style = UIStyle.Custom; + mm2.StyleCustomMode = true; + mm2.Symbol = 61703; + mm2.TabIndex = 27; + mm2.Tag = "5"; + mm2.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + mm2.Click += mm2_Click; // // h2 // - this.h2.BackColor = System.Drawing.Color.Transparent; - this.h2.Cursor = System.Windows.Forms.Cursors.Hand; - this.h2.FillColor = System.Drawing.Color.White; - this.h2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.h2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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(299, 128); - this.h2.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.h2.StyleCustomMode = true; - this.h2.Symbol = 61703; - this.h2.TabIndex = 26; - this.h2.Tag = "4"; - this.h2.Click += new System.EventHandler(this.h2_Click); + h2.BackColor = Color.Transparent; + h2.Cursor = Cursors.Hand; + h2.FillColor = Color.White; + h2.FillHoverColor = Color.FromArgb(80, 160, 255); + h2.Font = new Font("宋体", 12F); + h2.ForeColor = Color.FromArgb(80, 160, 255); + h2.Location = new Point(299, 128); + h2.MinimumSize = new Size(1, 1); + h2.Name = "h2"; + h2.Padding = new Padding(24, 0, 0, 0); + h2.RadiusSides = UICornerRadiusSides.None; + h2.RectHoverColor = Color.FromArgb(80, 160, 255); + h2.RectSides = ToolStripStatusLabelBorderSides.None; + h2.Size = new Size(30, 24); + h2.Style = UIStyle.Custom; + h2.StyleCustomMode = true; + h2.Symbol = 61703; + h2.TabIndex = 26; + h2.Tag = "4"; + h2.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + h2.Click += h2_Click; // // s1 // - this.s1.BackColor = System.Drawing.Color.Transparent; - this.s1.Cursor = System.Windows.Forms.Cursors.Hand; - this.s1.FillColor = System.Drawing.Color.White; - this.s1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.s1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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(405, 4); - this.s1.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.s1.StyleCustomMode = true; - this.s1.Symbol = 61702; - this.s1.TabIndex = 25; - this.s1.Tag = "3"; - this.s1.Click += new System.EventHandler(this.s1_Click); + s1.BackColor = Color.Transparent; + s1.Cursor = Cursors.Hand; + s1.FillColor = Color.White; + s1.FillHoverColor = Color.FromArgb(80, 160, 255); + s1.Font = new Font("宋体", 12F); + s1.ForeColor = Color.FromArgb(80, 160, 255); + s1.Location = new Point(405, 4); + s1.MinimumSize = new Size(1, 1); + s1.Name = "s1"; + s1.Padding = new Padding(24, 0, 0, 0); + s1.RadiusSides = UICornerRadiusSides.None; + s1.RectHoverColor = Color.FromArgb(80, 160, 255); + s1.RectSides = ToolStripStatusLabelBorderSides.None; + s1.Size = new Size(30, 24); + s1.Style = UIStyle.Custom; + s1.StyleCustomMode = true; + s1.Symbol = 61702; + s1.TabIndex = 25; + s1.Tag = "3"; + s1.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + s1.Click += s1_Click; // // mm1 // - this.mm1.BackColor = System.Drawing.Color.Transparent; - this.mm1.Cursor = System.Windows.Forms.Cursors.Hand; - this.mm1.FillColor = System.Drawing.Color.White; - this.mm1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.mm1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.mm1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.mm1.ImageInterval = 0; - this.mm1.Location = new System.Drawing.Point(352, 4); - this.mm1.MinimumSize = new System.Drawing.Size(1, 1); - this.mm1.Name = "mm1"; - this.mm1.Padding = new System.Windows.Forms.Padding(24, 0, 0, 0); - this.mm1.RadiusSides = Sunny.UI.UICornerRadiusSides.None; - this.mm1.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.mm1.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; - this.mm1.Size = new System.Drawing.Size(30, 24); - this.mm1.Style = Sunny.UI.UIStyle.Custom; - this.mm1.StyleCustomMode = true; - this.mm1.Symbol = 61702; - this.mm1.TabIndex = 24; - this.mm1.Tag = "2"; - this.mm1.Click += new System.EventHandler(this.mm1_Click); + mm1.BackColor = Color.Transparent; + mm1.Cursor = Cursors.Hand; + mm1.FillColor = Color.White; + mm1.FillHoverColor = Color.FromArgb(80, 160, 255); + mm1.Font = new Font("宋体", 12F); + mm1.ForeColor = Color.FromArgb(80, 160, 255); + mm1.Location = new Point(352, 4); + mm1.MinimumSize = new Size(1, 1); + mm1.Name = "mm1"; + mm1.Padding = new Padding(24, 0, 0, 0); + mm1.RadiusSides = UICornerRadiusSides.None; + mm1.RectHoverColor = Color.FromArgb(80, 160, 255); + mm1.RectSides = ToolStripStatusLabelBorderSides.None; + mm1.Size = new Size(30, 24); + mm1.Style = UIStyle.Custom; + mm1.StyleCustomMode = true; + mm1.Symbol = 61702; + mm1.TabIndex = 24; + mm1.Tag = "2"; + mm1.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + mm1.Click += mm1_Click; // // h1 // - this.h1.BackColor = System.Drawing.Color.Transparent; - this.h1.Cursor = System.Windows.Forms.Cursors.Hand; - this.h1.FillColor = System.Drawing.Color.White; - this.h1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.h1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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(299, 4); - this.h1.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.h1.StyleCustomMode = true; - this.h1.Symbol = 61702; - this.h1.TabIndex = 23; - this.h1.Tag = "1"; - this.h1.Click += new System.EventHandler(this.h1_Click); - // - // uiLine2 - // - this.uiLine2.BackColor = System.Drawing.Color.Transparent; - this.uiLine2.FillColor = System.Drawing.Color.White; - this.uiLine2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.uiLine2.LineColor = System.Drawing.Color.Silver; - this.uiLine2.LineDashStyle = Sunny.UI.UILineDashStyle.None; - this.uiLine2.Location = new System.Drawing.Point(289, 88); - this.uiLine2.MinimumSize = new System.Drawing.Size(16, 16); - this.uiLine2.Name = "uiLine2"; - this.uiLine2.RadiusSides = Sunny.UI.UICornerRadiusSides.None; - this.uiLine2.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; - this.uiLine2.Size = new System.Drawing.Size(157, 16); - this.uiLine2.Style = Sunny.UI.UIStyle.Custom; - this.uiLine2.StyleCustomMode = true; - this.uiLine2.TabIndex = 22; - // - // uiLine3 - // - this.uiLine3.BackColor = System.Drawing.Color.Transparent; - this.uiLine3.FillColor = System.Drawing.Color.White; - this.uiLine3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.uiLine3.LineColor = System.Drawing.Color.Silver; - this.uiLine3.LineDashStyle = Sunny.UI.UILineDashStyle.None; - this.uiLine3.Location = new System.Drawing.Point(289, 54); - this.uiLine3.MinimumSize = new System.Drawing.Size(16, 16); - this.uiLine3.Name = "uiLine3"; - this.uiLine3.RadiusSides = Sunny.UI.UICornerRadiusSides.None; - this.uiLine3.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; - this.uiLine3.Size = new System.Drawing.Size(157, 16); - this.uiLine3.Style = Sunny.UI.UIStyle.Custom; - this.uiLine3.StyleCustomMode = true; - this.uiLine3.TabIndex = 21; + h1.BackColor = Color.Transparent; + h1.Cursor = Cursors.Hand; + h1.FillColor = Color.White; + h1.FillHoverColor = Color.FromArgb(80, 160, 255); + h1.Font = new Font("宋体", 12F); + h1.ForeColor = Color.FromArgb(80, 160, 255); + h1.Location = new Point(299, 4); + h1.MinimumSize = new Size(1, 1); + h1.Name = "h1"; + h1.Padding = new Padding(24, 0, 0, 0); + h1.RadiusSides = UICornerRadiusSides.None; + h1.RectHoverColor = Color.FromArgb(80, 160, 255); + h1.RectSides = ToolStripStatusLabelBorderSides.None; + h1.Size = new Size(30, 24); + h1.Style = UIStyle.Custom; + h1.StyleCustomMode = true; + h1.Symbol = 61702; + h1.TabIndex = 23; + h1.Tag = "1"; + h1.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + h1.Click += h1_Click; // // uiPanel1 // - this.uiPanel1.BackColor = System.Drawing.Color.White; - this.uiPanel1.Controls.Add(this.TabControl); - this.uiPanel1.Controls.Add(this.TopPanel); - this.uiPanel1.Dock = System.Windows.Forms.DockStyle.Left; - this.uiPanel1.FillColor = System.Drawing.Color.White; - this.uiPanel1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.uiPanel1.Location = new System.Drawing.Point(0, 0); - this.uiPanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.uiPanel1.MinimumSize = new System.Drawing.Size(1, 1); - this.uiPanel1.Name = "uiPanel1"; - this.uiPanel1.RadiusSides = Sunny.UI.UICornerRadiusSides.None; - this.uiPanel1.Size = new System.Drawing.Size(284, 235); - this.uiPanel1.Style = Sunny.UI.UIStyle.Custom; - this.uiPanel1.StyleCustomMode = true; - this.uiPanel1.TabIndex = 3; - this.uiPanel1.Text = null; - this.uiPanel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + uiPanel1.BackColor = Color.White; + uiPanel1.Controls.Add(TabControl); + uiPanel1.Controls.Add(TopPanel); + uiPanel1.Dock = DockStyle.Left; + uiPanel1.FillColor = Color.White; + uiPanel1.Font = new Font("宋体", 12F); + uiPanel1.Location = new Point(0, 0); + uiPanel1.Margin = new Padding(4, 5, 4, 5); + uiPanel1.MinimumSize = new Size(1, 1); + uiPanel1.Name = "uiPanel1"; + uiPanel1.RadiusSides = UICornerRadiusSides.None; + uiPanel1.Size = new Size(284, 235); + uiPanel1.Style = UIStyle.Custom; + uiPanel1.StyleCustomMode = true; + uiPanel1.TabIndex = 3; + uiPanel1.Text = null; + uiPanel1.TextAlignment = ContentAlignment.MiddleCenter; // // UIDateTimeItem // - this.Controls.Add(this.sb); - this.Controls.Add(this.uiPanel1); - this.Controls.Add(this.mb); - this.Controls.Add(this.hb); - this.Controls.Add(this.h1); - this.Controls.Add(this.st); - this.Controls.Add(this.uiLine3); - this.Controls.Add(this.mt); - this.Controls.Add(this.uiLine2); - this.Controls.Add(this.ht); - this.Controls.Add(this.mm1); - this.Controls.Add(this.sc); - this.Controls.Add(this.s1); - this.Controls.Add(this.mc); - this.Controls.Add(this.h2); - this.Controls.Add(this.hc); - this.Controls.Add(this.mm2); - this.Controls.Add(this.btnCancel); - this.Controls.Add(this.s2); - this.Controls.Add(this.btnOK); - this.FillColor = System.Drawing.Color.White; - this.Name = "UIDateTimeItem"; - this.Size = new System.Drawing.Size(452, 235); - this.Style = Sunny.UI.UIStyle.Custom; - this.StyleCustomMode = true; - this.TopPanel.ResumeLayout(false); - this.TabControl.ResumeLayout(false); - this.tabPage1.ResumeLayout(false); - this.tabPage2.ResumeLayout(false); - this.tabPage3.ResumeLayout(false); - this.uiPanel1.ResumeLayout(false); - this.ResumeLayout(false); - + Controls.Add(sb); + Controls.Add(uiPanel1); + Controls.Add(mb); + Controls.Add(hb); + Controls.Add(h1); + Controls.Add(st); + Controls.Add(mt); + Controls.Add(ht); + Controls.Add(mm1); + Controls.Add(sc); + Controls.Add(s1); + Controls.Add(mc); + Controls.Add(h2); + Controls.Add(hc); + Controls.Add(mm2); + Controls.Add(btnCancel); + Controls.Add(s2); + Controls.Add(btnOK); + FillColor = Color.White; + Name = "UIDateTimeItem"; + Size = new Size(452, 235); + Style = UIStyle.Custom; + StyleCustomMode = true; + Paint += UIDateTimeItem_Paint; + TopPanel.ResumeLayout(false); + TabControl.ResumeLayout(false); + tabPage1.ResumeLayout(false); + tabPage2.ResumeLayout(false); + tabPage3.ResumeLayout(false); + uiPanel1.ResumeLayout(false); + ResumeLayout(false); } #endregion InitializeComponent @@ -1406,5 +1372,20 @@ namespace Sunny.UI activeDay = -1; p3.Invalidate(); } + + private void UIDateTimeItem_Paint(object sender, PaintEventArgs e) + { + if (SizeMultiple == 1) + { + e.Graphics.DrawLine(Color.LightGray, 292 * 1, 57 * SizeMultiple, 444 * SizeMultiple, 57 * SizeMultiple); + e.Graphics.DrawLine(Color.LightGray, 292 * 1, 101 * SizeMultiple, 444 * SizeMultiple, 101 * SizeMultiple); + } + else + { + e.Graphics.DrawLine(Color.LightGray, 292 * 2, 59 * SizeMultiple, 444 * SizeMultiple, 59 * SizeMultiple); + e.Graphics.DrawLine(Color.LightGray, 292 * 2, 99 * SizeMultiple, 444 * SizeMultiple, 99 * SizeMultiple); + + } + } } } \ No newline at end of file diff --git a/SunnyUI/Controls/DropItem/UIDateTimeItem.resx b/SunnyUI/Controls/DropItem/UIDateTimeItem.resx index f298a7be..af32865e 100644 --- a/SunnyUI/Controls/DropItem/UIDateTimeItem.resx +++ b/SunnyUI/Controls/DropItem/UIDateTimeItem.resx @@ -1,4 +1,64 @@ - + + + diff --git a/SunnyUI/Controls/DropItem/UITimeItem.cs b/SunnyUI/Controls/DropItem/UITimeItem.cs index df026161..5d9216d7 100644 --- a/SunnyUI/Controls/DropItem/UITimeItem.cs +++ b/SunnyUI/Controls/DropItem/UITimeItem.cs @@ -17,6 +17,7 @@ * 创建日期: 2020-05-29 * * 2020-05-29: V2.2.5 创建 + * 2024-07-14: V3.6.7 修改时间界面水平分割线颜色和位置 ******************************************************************************/ using System; @@ -27,9 +28,8 @@ namespace Sunny.UI { public sealed class UITimeItem : UIDropDownItem, ITranslate { - #region InitializeComponent - private UILine uiLine1; + #region InitializeComponent private UISymbolButton s1; private UISymbolButton m1; private UISymbolButton h1; @@ -47,381 +47,349 @@ namespace Sunny.UI private UILabel sb; private UILabel mb; private UILabel hb; - private UILine uiLine2; 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.BackColor = System.Drawing.Color.Transparent; - this.uiLine1.FillColor = System.Drawing.Color.White; - this.uiLine1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.uiLine1.LineColor = System.Drawing.Color.Silver; - this.uiLine1.Location = new System.Drawing.Point(6, 54); - this.uiLine1.MinimumSize = new System.Drawing.Size(16, 16); - this.uiLine1.Name = "uiLine1"; - this.uiLine1.RadiusSides = Sunny.UI.UICornerRadiusSides.None; - this.uiLine1.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; - 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.BackColor = System.Drawing.Color.Transparent; - this.uiLine2.FillColor = System.Drawing.Color.White; - this.uiLine2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.uiLine2.LineColor = System.Drawing.Color.Silver; - this.uiLine2.Location = new System.Drawing.Point(6, 88); - this.uiLine2.MinimumSize = new System.Drawing.Size(16, 16); - this.uiLine2.Name = "uiLine2"; - this.uiLine2.RadiusSides = Sunny.UI.UICornerRadiusSides.None; - this.uiLine2.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; - 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 = new UISymbolButton(); + m1 = new UISymbolButton(); + h1 = new UISymbolButton(); + s2 = new UISymbolButton(); + m2 = new UISymbolButton(); + h2 = new UISymbolButton(); + btnOK = new UISymbolButton(); + btnCancel = new UISymbolButton(); + hc = new UILabel(); + mc = new UILabel(); + sc = new UILabel(); + st = new UILabel(); + mt = new UILabel(); + ht = new UILabel(); + sb = new UILabel(); + mb = new UILabel(); + hb = new UILabel(); + SuspendLayout(); // // s1 // - this.s1.BackColor = System.Drawing.Color.Transparent; - this.s1.Cursor = System.Windows.Forms.Cursors.Hand; - this.s1.FillColor = System.Drawing.Color.White; - this.s1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.s1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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(122, 4); - this.s1.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.s1.StyleCustomMode = true; - this.s1.Symbol = 61702; - this.s1.TabIndex = 6; - this.s1.Tag = "3"; - this.s1.Click += new System.EventHandler(this.s1_Click); + s1.BackColor = Color.Transparent; + s1.Cursor = Cursors.Hand; + s1.FillColor = Color.White; + s1.FillHoverColor = Color.FromArgb(80, 160, 255); + s1.Font = new Font("宋体", 12F); + s1.ForeColor = Color.FromArgb(80, 160, 255); + s1.Location = new Point(122, 4); + s1.MinimumSize = new Size(1, 1); + s1.Name = "s1"; + s1.Padding = new Padding(24, 0, 0, 0); + s1.RadiusSides = UICornerRadiusSides.None; + s1.RectHoverColor = Color.FromArgb(80, 160, 255); + s1.RectSides = ToolStripStatusLabelBorderSides.None; + s1.Size = new Size(30, 24); + s1.Style = UIStyle.Custom; + s1.StyleCustomMode = true; + s1.Symbol = 61702; + s1.TabIndex = 6; + s1.Tag = "3"; + s1.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + s1.Click += s1_Click; // // m1 // - this.m1.BackColor = System.Drawing.Color.Transparent; - this.m1.Cursor = System.Windows.Forms.Cursors.Hand; - this.m1.FillColor = System.Drawing.Color.White; - this.m1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.m1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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(69, 4); - this.m1.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.m1.StyleCustomMode = true; - this.m1.Symbol = 61702; - this.m1.TabIndex = 5; - this.m1.Tag = "2"; - this.m1.Click += new System.EventHandler(this.m1_Click); + m1.BackColor = Color.Transparent; + m1.Cursor = Cursors.Hand; + m1.FillColor = Color.White; + m1.FillHoverColor = Color.FromArgb(80, 160, 255); + m1.Font = new Font("宋体", 12F); + m1.ForeColor = Color.FromArgb(80, 160, 255); + m1.Location = new Point(69, 4); + m1.MinimumSize = new Size(1, 1); + m1.Name = "m1"; + m1.Padding = new Padding(24, 0, 0, 0); + m1.RadiusSides = UICornerRadiusSides.None; + m1.RectHoverColor = Color.FromArgb(80, 160, 255); + m1.RectSides = ToolStripStatusLabelBorderSides.None; + m1.Size = new Size(30, 24); + m1.Style = UIStyle.Custom; + m1.StyleCustomMode = true; + m1.Symbol = 61702; + m1.TabIndex = 5; + m1.Tag = "2"; + m1.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + m1.Click += m1_Click; // // h1 // - this.h1.BackColor = System.Drawing.Color.Transparent; - this.h1.Cursor = System.Windows.Forms.Cursors.Hand; - this.h1.FillColor = System.Drawing.Color.White; - this.h1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.h1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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(16, 4); - this.h1.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.h1.StyleCustomMode = true; - this.h1.Symbol = 61702; - this.h1.TabIndex = 4; - this.h1.Tag = "1"; - this.h1.Click += new System.EventHandler(this.h1_Click); + h1.BackColor = Color.Transparent; + h1.Cursor = Cursors.Hand; + h1.FillColor = Color.White; + h1.FillHoverColor = Color.FromArgb(80, 160, 255); + h1.Font = new Font("宋体", 12F); + h1.ForeColor = Color.FromArgb(80, 160, 255); + h1.Location = new Point(16, 4); + h1.MinimumSize = new Size(1, 1); + h1.Name = "h1"; + h1.Padding = new Padding(24, 0, 0, 0); + h1.RadiusSides = UICornerRadiusSides.None; + h1.RectHoverColor = Color.FromArgb(80, 160, 255); + h1.RectSides = ToolStripStatusLabelBorderSides.None; + h1.Size = new Size(30, 24); + h1.Style = UIStyle.Custom; + h1.StyleCustomMode = true; + h1.Symbol = 61702; + h1.TabIndex = 4; + h1.Tag = "1"; + h1.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + h1.Click += h1_Click; // // s2 // - this.s2.BackColor = System.Drawing.Color.Transparent; - this.s2.Cursor = System.Windows.Forms.Cursors.Hand; - this.s2.FillColor = System.Drawing.Color.White; - this.s2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.s2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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(122, 129); - this.s2.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.s2.StyleCustomMode = true; - this.s2.Symbol = 61703; - this.s2.TabIndex = 9; - this.s2.Tag = "6"; - this.s2.Click += new System.EventHandler(this.s2_Click); + s2.BackColor = Color.Transparent; + s2.Cursor = Cursors.Hand; + s2.FillColor = Color.White; + s2.FillHoverColor = Color.FromArgb(80, 160, 255); + s2.Font = new Font("宋体", 12F); + s2.ForeColor = Color.FromArgb(80, 160, 255); + s2.Location = new Point(122, 129); + s2.MinimumSize = new Size(1, 1); + s2.Name = "s2"; + s2.Padding = new Padding(24, 0, 0, 0); + s2.RadiusSides = UICornerRadiusSides.None; + s2.RectHoverColor = Color.FromArgb(80, 160, 255); + s2.RectSides = ToolStripStatusLabelBorderSides.None; + s2.Size = new Size(30, 24); + s2.Style = UIStyle.Custom; + s2.StyleCustomMode = true; + s2.Symbol = 61703; + s2.TabIndex = 9; + s2.Tag = "6"; + s2.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + s2.Click += s2_Click; // // m2 // - this.m2.BackColor = System.Drawing.Color.Transparent; - this.m2.Cursor = System.Windows.Forms.Cursors.Hand; - this.m2.FillColor = System.Drawing.Color.White; - this.m2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.m2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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(69, 129); - this.m2.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.m2.StyleCustomMode = true; - this.m2.Symbol = 61703; - this.m2.TabIndex = 8; - this.m2.Tag = "5"; - this.m2.Click += new System.EventHandler(this.m2_Click); + m2.BackColor = Color.Transparent; + m2.Cursor = Cursors.Hand; + m2.FillColor = Color.White; + m2.FillHoverColor = Color.FromArgb(80, 160, 255); + m2.Font = new Font("宋体", 12F); + m2.ForeColor = Color.FromArgb(80, 160, 255); + m2.Location = new Point(69, 129); + m2.MinimumSize = new Size(1, 1); + m2.Name = "m2"; + m2.Padding = new Padding(24, 0, 0, 0); + m2.RadiusSides = UICornerRadiusSides.None; + m2.RectHoverColor = Color.FromArgb(80, 160, 255); + m2.RectSides = ToolStripStatusLabelBorderSides.None; + m2.Size = new Size(30, 24); + m2.Style = UIStyle.Custom; + m2.StyleCustomMode = true; + m2.Symbol = 61703; + m2.TabIndex = 8; + m2.Tag = "5"; + m2.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + m2.Click += m2_Click; // // h2 // - this.h2.BackColor = System.Drawing.Color.Transparent; - this.h2.Cursor = System.Windows.Forms.Cursors.Hand; - this.h2.FillColor = System.Drawing.Color.White; - this.h2.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.h2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - 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(16, 128); - this.h2.MinimumSize = new System.Drawing.Size(1, 1); - 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.Custom; - this.h2.StyleCustomMode = true; - this.h2.Symbol = 61703; - this.h2.TabIndex = 7; - this.h2.Tag = "4"; - this.h2.Click += new System.EventHandler(this.h2_Click); + h2.BackColor = Color.Transparent; + h2.Cursor = Cursors.Hand; + h2.FillColor = Color.White; + h2.FillHoverColor = Color.FromArgb(80, 160, 255); + h2.Font = new Font("宋体", 12F); + h2.ForeColor = Color.FromArgb(80, 160, 255); + h2.Location = new Point(16, 128); + h2.MinimumSize = new Size(1, 1); + h2.Name = "h2"; + h2.Padding = new Padding(24, 0, 0, 0); + h2.RadiusSides = UICornerRadiusSides.None; + h2.RectHoverColor = Color.FromArgb(80, 160, 255); + h2.RectSides = ToolStripStatusLabelBorderSides.None; + h2.Size = new Size(30, 24); + h2.Style = UIStyle.Custom; + h2.StyleCustomMode = true; + h2.Symbol = 61703; + h2.TabIndex = 7; + h2.Tag = "4"; + h2.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + h2.Click += h2_Click; // // btnOK // - this.btnOK.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnOK.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.btnOK.Location = new System.Drawing.Point(8, 162); - this.btnOK.MinimumSize = new System.Drawing.Size(1, 1); - 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.Style = Sunny.UI.UIStyle.Custom; - this.btnOK.Symbol = 0; - this.btnOK.TabIndex = 10; - this.btnOK.Text = "确定"; - this.btnOK.Click += new System.EventHandler(this.btnOK_Click); + btnOK.Cursor = Cursors.Hand; + btnOK.Font = new Font("宋体", 12F); + btnOK.Location = new Point(8, 162); + btnOK.MinimumSize = new Size(1, 1); + btnOK.Name = "btnOK"; + btnOK.Padding = new Padding(28, 0, 0, 0); + btnOK.Size = new Size(74, 27); + btnOK.Style = UIStyle.Custom; + btnOK.Symbol = 0; + btnOK.TabIndex = 10; + btnOK.Text = "确定"; + btnOK.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + btnOK.Click += btnOK_Click; // // btnCancel // - this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnCancel.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.btnCancel.Location = new System.Drawing.Point(87, 162); - this.btnCancel.MinimumSize = new System.Drawing.Size(1, 1); - 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.Style = Sunny.UI.UIStyle.Custom; - this.btnCancel.Symbol = 0; - this.btnCancel.TabIndex = 11; - this.btnCancel.Text = "取消"; - this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + btnCancel.Cursor = Cursors.Hand; + btnCancel.Font = new Font("宋体", 12F); + btnCancel.Location = new Point(87, 162); + btnCancel.MinimumSize = new Size(1, 1); + btnCancel.Name = "btnCancel"; + btnCancel.Padding = new Padding(28, 0, 0, 0); + btnCancel.Size = new Size(74, 27); + btnCancel.Style = UIStyle.Custom; + btnCancel.Symbol = 0; + btnCancel.TabIndex = 11; + btnCancel.Text = "取消"; + btnCancel.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + btnCancel.Click += btnCancel_Click; // // hc // - this.hc.BackColor = System.Drawing.Color.Transparent; - this.hc.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.hc.Location = new System.Drawing.Point(9, 65); - this.hc.Name = "hc"; - this.hc.Size = new System.Drawing.Size(46, 27); - this.hc.StyleCustomMode = true; - this.hc.TabIndex = 12; - this.hc.Text = "00"; - this.hc.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.hc.DoubleClick += new System.EventHandler(this.hc_DoubleClick); + hc.BackColor = Color.Transparent; + hc.Font = new Font("宋体", 12F); + hc.ForeColor = Color.FromArgb(48, 48, 48); + hc.Location = new Point(9, 65); + hc.Name = "hc"; + hc.Size = new Size(46, 27); + hc.StyleCustomMode = true; + hc.TabIndex = 12; + hc.Text = "00"; + hc.TextAlign = ContentAlignment.MiddleCenter; + hc.DoubleClick += hc_DoubleClick; // // mc // - this.mc.BackColor = System.Drawing.Color.Transparent; - this.mc.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.mc.Location = new System.Drawing.Point(62, 65); - this.mc.Name = "mc"; - this.mc.Size = new System.Drawing.Size(46, 27); - this.mc.StyleCustomMode = true; - this.mc.TabIndex = 13; - this.mc.Text = "00"; - this.mc.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.mc.DoubleClick += new System.EventHandler(this.mc_DoubleClick); + mc.BackColor = Color.Transparent; + mc.Font = new Font("宋体", 12F); + mc.ForeColor = Color.FromArgb(48, 48, 48); + mc.Location = new Point(62, 65); + mc.Name = "mc"; + mc.Size = new Size(46, 27); + mc.StyleCustomMode = true; + mc.TabIndex = 13; + mc.Text = "00"; + mc.TextAlign = ContentAlignment.MiddleCenter; + mc.DoubleClick += mc_DoubleClick; // // sc // - this.sc.BackColor = System.Drawing.Color.Transparent; - this.sc.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.sc.Location = new System.Drawing.Point(115, 65); - this.sc.Name = "sc"; - this.sc.Size = new System.Drawing.Size(46, 27); - this.sc.StyleCustomMode = true; - this.sc.TabIndex = 14; - this.sc.Text = "00"; - this.sc.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.sc.DoubleClick += new System.EventHandler(this.sc_DoubleClick); + sc.BackColor = Color.Transparent; + sc.Font = new Font("宋体", 12F); + sc.ForeColor = Color.FromArgb(48, 48, 48); + sc.Location = new Point(115, 65); + sc.Name = "sc"; + sc.Size = new Size(46, 27); + sc.StyleCustomMode = true; + sc.TabIndex = 14; + sc.Text = "00"; + sc.TextAlign = ContentAlignment.MiddleCenter; + sc.DoubleClick += sc_DoubleClick; // // st // - this.st.BackColor = System.Drawing.Color.Transparent; - this.st.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.st.ForeColor = System.Drawing.Color.DarkGray; - this.st.Location = new System.Drawing.Point(115, 31); - this.st.Name = "st"; - this.st.Size = new System.Drawing.Size(46, 22); - this.st.StyleCustomMode = true; - this.st.TabIndex = 17; - this.st.Text = "00"; - this.st.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + st.BackColor = Color.Transparent; + st.Font = new Font("宋体", 12F); + st.ForeColor = Color.DarkGray; + st.Location = new Point(115, 31); + st.Name = "st"; + st.Size = new Size(46, 22); + st.StyleCustomMode = true; + st.TabIndex = 17; + st.Text = "00"; + st.TextAlign = ContentAlignment.MiddleCenter; // // mt // - this.mt.BackColor = System.Drawing.Color.Transparent; - this.mt.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.mt.ForeColor = System.Drawing.Color.DarkGray; - this.mt.Location = new System.Drawing.Point(62, 31); - this.mt.Name = "mt"; - this.mt.Size = new System.Drawing.Size(46, 22); - this.mt.StyleCustomMode = true; - this.mt.TabIndex = 16; - this.mt.Text = "00"; - this.mt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + mt.BackColor = Color.Transparent; + mt.Font = new Font("宋体", 12F); + mt.ForeColor = Color.DarkGray; + mt.Location = new Point(62, 31); + mt.Name = "mt"; + mt.Size = new Size(46, 22); + mt.StyleCustomMode = true; + mt.TabIndex = 16; + mt.Text = "00"; + mt.TextAlign = ContentAlignment.MiddleCenter; // // ht // - this.ht.BackColor = System.Drawing.Color.Transparent; - this.ht.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.ht.ForeColor = System.Drawing.Color.DarkGray; - this.ht.Location = new System.Drawing.Point(9, 31); - this.ht.Name = "ht"; - this.ht.Size = new System.Drawing.Size(46, 22); - this.ht.StyleCustomMode = true; - this.ht.TabIndex = 15; - this.ht.Text = "00"; - this.ht.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + ht.BackColor = Color.Transparent; + ht.Font = new Font("宋体", 12F); + ht.ForeColor = Color.DarkGray; + ht.Location = new Point(9, 31); + ht.Name = "ht"; + ht.Size = new Size(46, 22); + ht.StyleCustomMode = true; + ht.TabIndex = 15; + ht.Text = "00"; + ht.TextAlign = ContentAlignment.MiddleCenter; // // sb // - this.sb.BackColor = System.Drawing.Color.Transparent; - this.sb.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.sb.ForeColor = System.Drawing.Color.DarkGray; - this.sb.Location = new System.Drawing.Point(115, 103); - this.sb.Name = "sb"; - this.sb.Size = new System.Drawing.Size(46, 22); - this.sb.StyleCustomMode = true; - this.sb.TabIndex = 20; - this.sb.Text = "00"; - this.sb.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + sb.BackColor = Color.Transparent; + sb.Font = new Font("宋体", 12F); + sb.ForeColor = Color.DarkGray; + sb.Location = new Point(115, 103); + sb.Name = "sb"; + sb.Size = new Size(46, 22); + sb.StyleCustomMode = true; + sb.TabIndex = 20; + sb.Text = "00"; + sb.TextAlign = ContentAlignment.MiddleCenter; // // mb // - this.mb.BackColor = System.Drawing.Color.Transparent; - this.mb.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.mb.ForeColor = System.Drawing.Color.DarkGray; - this.mb.Location = new System.Drawing.Point(62, 103); - this.mb.Name = "mb"; - this.mb.Size = new System.Drawing.Size(46, 22); - this.mb.StyleCustomMode = true; - this.mb.TabIndex = 19; - this.mb.Text = "00"; - this.mb.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + mb.BackColor = Color.Transparent; + mb.Font = new Font("宋体", 12F); + mb.ForeColor = Color.DarkGray; + mb.Location = new Point(62, 103); + mb.Name = "mb"; + mb.Size = new Size(46, 22); + mb.StyleCustomMode = true; + mb.TabIndex = 19; + mb.Text = "00"; + mb.TextAlign = ContentAlignment.MiddleCenter; // // hb // - this.hb.BackColor = System.Drawing.Color.Transparent; - this.hb.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.hb.ForeColor = System.Drawing.Color.DarkGray; - this.hb.Location = new System.Drawing.Point(9, 103); - this.hb.Name = "hb"; - this.hb.Size = new System.Drawing.Size(46, 22); - this.hb.StyleCustomMode = true; - this.hb.TabIndex = 18; - this.hb.Text = "00"; - this.hb.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + hb.BackColor = Color.Transparent; + hb.Font = new Font("宋体", 12F); + hb.ForeColor = Color.DarkGray; + hb.Location = new Point(9, 103); + hb.Name = "hb"; + hb.Size = new Size(46, 22); + hb.StyleCustomMode = true; + hb.TabIndex = 18; + hb.Text = "00"; + hb.TextAlign = 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.FillColor = System.Drawing.Color.White; - this.Name = "UITimeItem"; - this.Size = new System.Drawing.Size(168, 200); - this.Style = Sunny.UI.UIStyle.Custom; - this.ResumeLayout(false); - + Controls.Add(sb); + Controls.Add(mb); + Controls.Add(hb); + Controls.Add(st); + Controls.Add(mt); + Controls.Add(ht); + Controls.Add(sc); + Controls.Add(mc); + Controls.Add(hc); + Controls.Add(btnCancel); + Controls.Add(btnOK); + Controls.Add(s2); + Controls.Add(m2); + Controls.Add(h2); + Controls.Add(s1); + Controls.Add(m1); + Controls.Add(h1); + FillColor = Color.White; + Name = "UITimeItem"; + Size = new Size(168, 200); + Style = UIStyle.Custom; + Paint += UITimeItem_Paint; + ResumeLayout(false); } #endregion InitializeComponent @@ -674,5 +642,11 @@ namespace Sunny.UI Second = 0; ShowOther(); } + + private void UITimeItem_Paint(object sender, PaintEventArgs e) + { + e.Graphics.DrawLine(Color.LightGray, 8 * SizeMultiple, (54 + 8 - 3) * SizeMultiple, (168 - 8) * SizeMultiple, (54 + 8 - 3) * SizeMultiple); + e.Graphics.DrawLine(Color.LightGray, 8 * SizeMultiple, (88 + 8 + 3) * SizeMultiple, (168 - 8) * SizeMultiple, (88 + 8 + 3) * SizeMultiple); + } } } \ No newline at end of file diff --git a/SunnyUI/Controls/DropItem/UITimeItem.resx b/SunnyUI/Controls/DropItem/UITimeItem.resx index f298a7be..af32865e 100644 --- a/SunnyUI/Controls/DropItem/UITimeItem.resx +++ b/SunnyUI/Controls/DropItem/UITimeItem.resx @@ -1,4 +1,64 @@ - + + +