diff --git a/AntdUIDemo.csproj b/AntdUIDemo.csproj index 7091a2f..5e5ccab 100644 --- a/AntdUIDemo.csproj +++ b/AntdUIDemo.csproj @@ -13,7 +13,7 @@ Copyright © 2024 czz_y $(Version) $(Version) - 1.5.8 + 1.5.9 czz_y 基于 Winform UI框架 AntdUI 设计的Demo https://gitee.com/mubaiyanghua/antd-uidemo @@ -30,7 +30,7 @@ - + diff --git a/Views/ColorPickerDemo.Designer.cs b/Views/ColorPickerDemo.Designer.cs index 1673a9b..6f5af1e 100644 --- a/Views/ColorPickerDemo.Designer.cs +++ b/Views/ColorPickerDemo.Designer.cs @@ -29,35 +29,38 @@ private void InitializeComponent() { this.stackPanel1 = new AntdUI.StackPanel(); + this.flowPanel4 = new AntdUI.FlowPanel(); + this.colorPicker11 = new AntdUI.ColorPicker(); + this.colorPicker10 = new AntdUI.ColorPicker(); + this.colorPicker9 = new AntdUI.ColorPicker(); + this.colorPicker8 = new AntdUI.ColorPicker(); + this.colorPicker7 = new AntdUI.ColorPicker(); + this.colorPicker6 = new AntdUI.ColorPicker(); + this.label6 = new AntdUI.Label(); + this.flowPanel3 = new AntdUI.FlowPanel(); + this.colorPicker5 = new AntdUI.ColorPicker(); + this.colorPicker13 = new AntdUI.ColorPicker(); + this.label5 = new AntdUI.Label(); + this.flowPanel2 = new AntdUI.FlowPanel(); + this.colorPicker4 = new AntdUI.ColorPicker(); + this.colorPicker3 = new AntdUI.ColorPicker(); + this.label4 = new AntdUI.Label(); this.flowPanel1 = new AntdUI.FlowPanel(); + this.colorPicker2 = new AntdUI.ColorPicker(); this.colorPicker1 = new AntdUI.ColorPicker(); this.label3 = new AntdUI.Label(); this.divider1 = new AntdUI.Divider(); this.label2 = new AntdUI.Label(); this.label1 = new AntdUI.Label(); - this.label4 = new AntdUI.Label(); - this.flowPanel2 = new AntdUI.FlowPanel(); - this.colorPicker3 = new AntdUI.ColorPicker(); - this.colorPicker4 = new AntdUI.ColorPicker(); - this.label5 = new AntdUI.Label(); - this.flowPanel3 = new AntdUI.FlowPanel(); - this.label6 = new AntdUI.Label(); - this.flowPanel4 = new AntdUI.FlowPanel(); - this.colorPicker6 = new AntdUI.ColorPicker(); - this.colorPicker7 = new AntdUI.ColorPicker(); - this.colorPicker8 = new AntdUI.ColorPicker(); - this.colorPicker9 = new AntdUI.ColorPicker(); - this.colorPicker10 = new AntdUI.ColorPicker(); - this.colorPicker11 = new AntdUI.ColorPicker(); + this.colorPicker15 = new AntdUI.ColorPicker(); + this.colorPicker16 = new AntdUI.ColorPicker(); + this.colorPicker14 = new AntdUI.ColorPicker(); this.colorPicker12 = new AntdUI.ColorPicker(); - this.colorPicker2 = new AntdUI.ColorPicker(); - this.colorPicker13 = new AntdUI.ColorPicker(); - this.colorPicker5 = new AntdUI.ColorPicker(); this.stackPanel1.SuspendLayout(); - this.flowPanel1.SuspendLayout(); - this.flowPanel2.SuspendLayout(); - this.flowPanel3.SuspendLayout(); this.flowPanel4.SuspendLayout(); + this.flowPanel3.SuspendLayout(); + this.flowPanel2.SuspendLayout(); + this.flowPanel1.SuspendLayout(); this.SuspendLayout(); // // stackPanel1 @@ -81,10 +84,206 @@ this.stackPanel1.Text = "stackPanel1"; this.stackPanel1.Vertical = true; // + // flowPanel4 + // + this.flowPanel4.Controls.Add(this.colorPicker11); + this.flowPanel4.Controls.Add(this.colorPicker10); + this.flowPanel4.Controls.Add(this.colorPicker9); + this.flowPanel4.Controls.Add(this.colorPicker8); + this.flowPanel4.Controls.Add(this.colorPicker7); + this.flowPanel4.Controls.Add(this.colorPicker6); + this.flowPanel4.Location = new System.Drawing.Point(3, 349); + this.flowPanel4.Name = "flowPanel4"; + this.flowPanel4.Size = new System.Drawing.Size(694, 38); + this.flowPanel4.TabIndex = 15; + this.flowPanel4.Text = "flowPanel4"; + // + // colorPicker11 + // + this.colorPicker11.DisabledAlpha = true; + this.colorPicker11.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker11.Location = new System.Drawing.Point(558, 3); + this.colorPicker11.Name = "colorPicker11"; + this.colorPicker11.Placement = AntdUI.TAlignFrom.TL; + this.colorPicker11.ShowText = true; + this.colorPicker11.Size = new System.Drawing.Size(105, 32); + this.colorPicker11.TabIndex = 7; + this.colorPicker11.Text = "colorPicker11"; + this.colorPicker11.Value = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.colorPicker11.WaveSize = 0; + // + // colorPicker10 + // + this.colorPicker10.DisabledAlpha = true; + this.colorPicker10.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker10.Location = new System.Drawing.Point(447, 3); + this.colorPicker10.Name = "colorPicker10"; + this.colorPicker10.Placement = AntdUI.TAlignFrom.Top; + this.colorPicker10.ShowText = true; + this.colorPicker10.Size = new System.Drawing.Size(105, 32); + this.colorPicker10.TabIndex = 6; + this.colorPicker10.Text = "colorPicker10"; + this.colorPicker10.Value = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.colorPicker10.WaveSize = 0; + // + // colorPicker9 + // + this.colorPicker9.DisabledAlpha = true; + this.colorPicker9.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker9.Location = new System.Drawing.Point(336, 3); + this.colorPicker9.Name = "colorPicker9"; + this.colorPicker9.Placement = AntdUI.TAlignFrom.TR; + this.colorPicker9.ShowText = true; + this.colorPicker9.Size = new System.Drawing.Size(105, 32); + this.colorPicker9.TabIndex = 5; + this.colorPicker9.Text = "colorPicker9"; + this.colorPicker9.Value = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.colorPicker9.WaveSize = 0; + // + // colorPicker8 + // + this.colorPicker8.DisabledAlpha = true; + this.colorPicker8.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker8.Location = new System.Drawing.Point(225, 3); + this.colorPicker8.Name = "colorPicker8"; + this.colorPicker8.Placement = AntdUI.TAlignFrom.BR; + this.colorPicker8.ShowText = true; + this.colorPicker8.Size = new System.Drawing.Size(105, 32); + this.colorPicker8.TabIndex = 4; + this.colorPicker8.Text = "colorPicker8"; + this.colorPicker8.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker8.WaveSize = 0; + // + // colorPicker7 + // + this.colorPicker7.DisabledAlpha = true; + this.colorPicker7.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker7.Location = new System.Drawing.Point(114, 3); + this.colorPicker7.Name = "colorPicker7"; + this.colorPicker7.Placement = AntdUI.TAlignFrom.Bottom; + this.colorPicker7.ShowText = true; + this.colorPicker7.Size = new System.Drawing.Size(105, 32); + this.colorPicker7.TabIndex = 3; + this.colorPicker7.Text = "colorPicker7"; + this.colorPicker7.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker7.WaveSize = 0; + // + // colorPicker6 + // + this.colorPicker6.DisabledAlpha = true; + this.colorPicker6.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker6.Location = new System.Drawing.Point(3, 3); + this.colorPicker6.Name = "colorPicker6"; + this.colorPicker6.ShowText = true; + this.colorPicker6.Size = new System.Drawing.Size(105, 32); + this.colorPicker6.TabIndex = 2; + this.colorPicker6.Text = "colorPicker6"; + this.colorPicker6.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker6.WaveSize = 0; + // + // label6 + // + this.label6.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label6.Location = new System.Drawing.Point(3, 319); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(694, 24); + this.label6.TabIndex = 14; + this.label6.Text = "弹出位置"; + // + // flowPanel3 + // + this.flowPanel3.Controls.Add(this.colorPicker15); + this.flowPanel3.Controls.Add(this.colorPicker16); + this.flowPanel3.Controls.Add(this.colorPicker5); + this.flowPanel3.Controls.Add(this.colorPicker13); + this.flowPanel3.Location = new System.Drawing.Point(3, 275); + this.flowPanel3.Name = "flowPanel3"; + this.flowPanel3.Size = new System.Drawing.Size(694, 38); + this.flowPanel3.TabIndex = 13; + this.flowPanel3.Text = "flowPanel3"; + // + // colorPicker5 + // + this.colorPicker5.DisabledAlpha = true; + this.colorPicker5.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker5.Location = new System.Drawing.Point(41, 3); + this.colorPicker5.Name = "colorPicker5"; + this.colorPicker5.ShowText = true; + this.colorPicker5.Size = new System.Drawing.Size(105, 32); + this.colorPicker5.TabIndex = 4; + this.colorPicker5.Text = "colorPicker5"; + this.colorPicker5.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker5.WaveSize = 0; + // + // colorPicker13 + // + this.colorPicker13.DisabledAlpha = true; + this.colorPicker13.Location = new System.Drawing.Point(3, 3); + this.colorPicker13.Name = "colorPicker13"; + this.colorPicker13.Size = new System.Drawing.Size(32, 32); + this.colorPicker13.TabIndex = 3; + this.colorPicker13.Text = "colorPicker13"; + this.colorPicker13.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker13.WaveSize = 0; + // + // label5 + // + this.label5.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(3, 245); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(694, 24); + this.label5.TabIndex = 12; + this.label5.Text = "无透明度"; + // + // flowPanel2 + // + this.flowPanel2.Controls.Add(this.colorPicker4); + this.flowPanel2.Controls.Add(this.colorPicker3); + this.flowPanel2.Location = new System.Drawing.Point(3, 201); + this.flowPanel2.Name = "flowPanel2"; + this.flowPanel2.Size = new System.Drawing.Size(694, 38); + this.flowPanel2.TabIndex = 11; + this.flowPanel2.Text = "flowPanel2"; + // + // colorPicker4 + // + this.colorPicker4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker4.Location = new System.Drawing.Point(114, 3); + this.colorPicker4.Name = "colorPicker4"; + this.colorPicker4.ShowText = true; + this.colorPicker4.Size = new System.Drawing.Size(105, 32); + this.colorPicker4.TabIndex = 2; + this.colorPicker4.Text = "colorPicker4"; + this.colorPicker4.Trigger = AntdUI.Trigger.Hover; + this.colorPicker4.Value = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.colorPicker4.WaveSize = 0; + // + // colorPicker3 + // + this.colorPicker3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker3.Location = new System.Drawing.Point(3, 3); + this.colorPicker3.Name = "colorPicker3"; + this.colorPicker3.ShowText = true; + this.colorPicker3.Size = new System.Drawing.Size(105, 32); + this.colorPicker3.TabIndex = 1; + this.colorPicker3.Text = "colorPicker3"; + this.colorPicker3.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker3.WaveSize = 0; + // + // label4 + // + this.label4.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label4.Location = new System.Drawing.Point(3, 171); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(694, 24); + this.label4.TabIndex = 10; + this.label4.Text = "触发方式"; + // // flowPanel1 // - this.flowPanel1.Controls.Add(this.colorPicker2); + this.flowPanel1.Controls.Add(this.colorPicker14); this.flowPanel1.Controls.Add(this.colorPicker12); + this.flowPanel1.Controls.Add(this.colorPicker2); this.flowPanel1.Controls.Add(this.colorPicker1); this.flowPanel1.Location = new System.Drawing.Point(3, 127); this.flowPanel1.Name = "flowPanel1"; @@ -92,6 +291,18 @@ this.flowPanel1.TabIndex = 9; this.flowPanel1.Text = "flowPanel1"; // + // colorPicker2 + // + this.colorPicker2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker2.Location = new System.Drawing.Point(41, 3); + this.colorPicker2.Name = "colorPicker2"; + this.colorPicker2.ShowText = true; + this.colorPicker2.Size = new System.Drawing.Size(105, 32); + this.colorPicker2.TabIndex = 3; + this.colorPicker2.Text = "colorPicker2"; + this.colorPicker2.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker2.WaveSize = 0; + // // colorPicker1 // this.colorPicker1.Location = new System.Drawing.Point(3, 3); @@ -136,223 +347,56 @@ this.label1.TabIndex = 5; this.label1.Text = "ColorPicker 颜色选择器"; // - // label4 + // colorPicker15 // - this.label4.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(3, 171); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(694, 24); - this.label4.TabIndex = 10; - this.label4.Text = "触发方式"; + this.colorPicker15.DisabledAlpha = true; + this.colorPicker15.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker15.Location = new System.Drawing.Point(190, 3); + this.colorPicker15.Mode = AntdUI.TColorMode.Rgb; + this.colorPicker15.Name = "colorPicker15"; + this.colorPicker15.ShowText = true; + this.colorPicker15.Size = new System.Drawing.Size(140, 32); + this.colorPicker15.TabIndex = 6; + this.colorPicker15.Text = "colorPicker15"; + this.colorPicker15.Value = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.colorPicker15.WaveSize = 0; // - // flowPanel2 + // colorPicker16 // - this.flowPanel2.Controls.Add(this.colorPicker4); - this.flowPanel2.Controls.Add(this.colorPicker3); - this.flowPanel2.Location = new System.Drawing.Point(3, 201); - this.flowPanel2.Name = "flowPanel2"; - this.flowPanel2.Size = new System.Drawing.Size(694, 38); - this.flowPanel2.TabIndex = 11; - this.flowPanel2.Text = "flowPanel2"; + this.colorPicker16.DisabledAlpha = true; + this.colorPicker16.Location = new System.Drawing.Point(152, 3); + this.colorPicker16.Mode = AntdUI.TColorMode.Rgb; + this.colorPicker16.Name = "colorPicker16"; + this.colorPicker16.Size = new System.Drawing.Size(32, 32); + this.colorPicker16.TabIndex = 5; + this.colorPicker16.Text = "colorPicker16"; + this.colorPicker16.Value = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.colorPicker16.WaveSize = 0; // - // colorPicker3 + // colorPicker14 // - this.colorPicker3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorPicker3.Location = new System.Drawing.Point(3, 3); - this.colorPicker3.Name = "colorPicker3"; - this.colorPicker3.ShowText = true; - this.colorPicker3.Size = new System.Drawing.Size(105, 32); - this.colorPicker3.TabIndex = 1; - this.colorPicker3.Text = "colorPicker3"; - this.colorPicker3.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); - this.colorPicker3.WaveSize = 0; - // - // colorPicker4 - // - this.colorPicker4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorPicker4.Location = new System.Drawing.Point(114, 3); - this.colorPicker4.Name = "colorPicker4"; - this.colorPicker4.ShowText = true; - this.colorPicker4.Size = new System.Drawing.Size(105, 32); - this.colorPicker4.TabIndex = 2; - this.colorPicker4.Text = "colorPicker4"; - this.colorPicker4.Trigger = AntdUI.Trigger.Hover; - this.colorPicker4.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); - this.colorPicker4.WaveSize = 0; - // - // label5 - // - this.label5.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(3, 245); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(694, 24); - this.label5.TabIndex = 12; - this.label5.Text = "无透明度"; - // - // flowPanel3 - // - this.flowPanel3.Controls.Add(this.colorPicker5); - this.flowPanel3.Controls.Add(this.colorPicker13); - this.flowPanel3.Location = new System.Drawing.Point(3, 275); - this.flowPanel3.Name = "flowPanel3"; - this.flowPanel3.Size = new System.Drawing.Size(694, 38); - this.flowPanel3.TabIndex = 13; - this.flowPanel3.Text = "flowPanel3"; - // - // label6 - // - this.label6.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label6.Location = new System.Drawing.Point(3, 319); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(694, 24); - this.label6.TabIndex = 14; - this.label6.Text = "弹出位置"; - // - // flowPanel4 - // - this.flowPanel4.Controls.Add(this.colorPicker11); - this.flowPanel4.Controls.Add(this.colorPicker10); - this.flowPanel4.Controls.Add(this.colorPicker9); - this.flowPanel4.Controls.Add(this.colorPicker8); - this.flowPanel4.Controls.Add(this.colorPicker7); - this.flowPanel4.Controls.Add(this.colorPicker6); - this.flowPanel4.Location = new System.Drawing.Point(3, 349); - this.flowPanel4.Name = "flowPanel4"; - this.flowPanel4.Size = new System.Drawing.Size(694, 38); - this.flowPanel4.TabIndex = 15; - this.flowPanel4.Text = "flowPanel4"; - // - // colorPicker6 - // - this.colorPicker6.DisabledAlpha = true; - this.colorPicker6.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorPicker6.Location = new System.Drawing.Point(3, 3); - this.colorPicker6.Name = "colorPicker6"; - this.colorPicker6.ShowText = true; - this.colorPicker6.Size = new System.Drawing.Size(105, 32); - this.colorPicker6.TabIndex = 2; - this.colorPicker6.Text = "colorPicker6"; - this.colorPicker6.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); - this.colorPicker6.WaveSize = 0; - // - // colorPicker7 - // - this.colorPicker7.DisabledAlpha = true; - this.colorPicker7.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorPicker7.Location = new System.Drawing.Point(114, 3); - this.colorPicker7.Name = "colorPicker7"; - this.colorPicker7.Placement = AntdUI.TAlignFrom.Bottom; - this.colorPicker7.ShowText = true; - this.colorPicker7.Size = new System.Drawing.Size(105, 32); - this.colorPicker7.TabIndex = 3; - this.colorPicker7.Text = "colorPicker7"; - this.colorPicker7.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); - this.colorPicker7.WaveSize = 0; - // - // colorPicker8 - // - this.colorPicker8.DisabledAlpha = true; - this.colorPicker8.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorPicker8.Location = new System.Drawing.Point(225, 3); - this.colorPicker8.Name = "colorPicker8"; - this.colorPicker8.Placement = AntdUI.TAlignFrom.BR; - this.colorPicker8.ShowText = true; - this.colorPicker8.Size = new System.Drawing.Size(105, 32); - this.colorPicker8.TabIndex = 4; - this.colorPicker8.Text = "colorPicker8"; - this.colorPicker8.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); - this.colorPicker8.WaveSize = 0; - // - // colorPicker9 - // - this.colorPicker9.DisabledAlpha = true; - this.colorPicker9.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorPicker9.Location = new System.Drawing.Point(336, 3); - this.colorPicker9.Name = "colorPicker9"; - this.colorPicker9.Placement = AntdUI.TAlignFrom.TR; - this.colorPicker9.ShowText = true; - this.colorPicker9.Size = new System.Drawing.Size(105, 32); - this.colorPicker9.TabIndex = 5; - this.colorPicker9.Text = "colorPicker9"; - this.colorPicker9.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); - this.colorPicker9.WaveSize = 0; - // - // colorPicker10 - // - this.colorPicker10.DisabledAlpha = true; - this.colorPicker10.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorPicker10.Location = new System.Drawing.Point(447, 3); - this.colorPicker10.Name = "colorPicker10"; - this.colorPicker10.Placement = AntdUI.TAlignFrom.Top; - this.colorPicker10.ShowText = true; - this.colorPicker10.Size = new System.Drawing.Size(105, 32); - this.colorPicker10.TabIndex = 6; - this.colorPicker10.Text = "colorPicker10"; - this.colorPicker10.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); - this.colorPicker10.WaveSize = 0; - // - // colorPicker11 - // - this.colorPicker11.DisabledAlpha = true; - this.colorPicker11.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorPicker11.Location = new System.Drawing.Point(558, 3); - this.colorPicker11.Name = "colorPicker11"; - this.colorPicker11.Placement = AntdUI.TAlignFrom.TL; - this.colorPicker11.ShowText = true; - this.colorPicker11.Size = new System.Drawing.Size(105, 32); - this.colorPicker11.TabIndex = 7; - this.colorPicker11.Text = "colorPicker11"; - this.colorPicker11.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); - this.colorPicker11.WaveSize = 0; + this.colorPicker14.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker14.Location = new System.Drawing.Point(190, 3); + this.colorPicker14.Mode = AntdUI.TColorMode.Rgb; + this.colorPicker14.Name = "colorPicker14"; + this.colorPicker14.ShowText = true; + this.colorPicker14.Size = new System.Drawing.Size(140, 32); + this.colorPicker14.TabIndex = 6; + this.colorPicker14.Text = "colorPicker14"; + this.colorPicker14.Value = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.colorPicker14.WaveSize = 0; // // colorPicker12 // - this.colorPicker12.Location = new System.Drawing.Point(41, 3); + this.colorPicker12.Location = new System.Drawing.Point(152, 3); this.colorPicker12.Mode = AntdUI.TColorMode.Rgb; this.colorPicker12.Name = "colorPicker12"; this.colorPicker12.Size = new System.Drawing.Size(32, 32); - this.colorPicker12.TabIndex = 2; + this.colorPicker12.TabIndex = 5; this.colorPicker12.Text = "colorPicker12"; this.colorPicker12.Value = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.colorPicker12.WaveSize = 0; // - // colorPicker2 - // - this.colorPicker2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorPicker2.Location = new System.Drawing.Point(79, 3); - this.colorPicker2.Name = "colorPicker2"; - this.colorPicker2.ShowText = true; - this.colorPicker2.Size = new System.Drawing.Size(105, 32); - this.colorPicker2.TabIndex = 3; - this.colorPicker2.Text = "colorPicker2"; - this.colorPicker2.Value = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); - this.colorPicker2.WaveSize = 0; - // - // colorPicker13 - // - this.colorPicker13.DisabledAlpha = true; - this.colorPicker13.Location = new System.Drawing.Point(3, 3); - this.colorPicker13.Mode = AntdUI.TColorMode.Rgb; - this.colorPicker13.Name = "colorPicker13"; - this.colorPicker13.Size = new System.Drawing.Size(32, 32); - this.colorPicker13.TabIndex = 3; - this.colorPicker13.Text = "colorPicker13"; - this.colorPicker13.Value = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); - this.colorPicker13.WaveSize = 0; - // - // colorPicker5 - // - this.colorPicker5.DisabledAlpha = true; - this.colorPicker5.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorPicker5.Location = new System.Drawing.Point(41, 3); - this.colorPicker5.Name = "colorPicker5"; - this.colorPicker5.ShowText = true; - this.colorPicker5.Size = new System.Drawing.Size(105, 32); - this.colorPicker5.TabIndex = 4; - this.colorPicker5.Text = "colorPicker5"; - this.colorPicker5.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); - this.colorPicker5.WaveSize = 0; - // // ColorPickerDemo // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; @@ -360,10 +404,10 @@ this.Name = "ColorPickerDemo"; this.Size = new System.Drawing.Size(700, 435); this.stackPanel1.ResumeLayout(false); - this.flowPanel1.ResumeLayout(false); - this.flowPanel2.ResumeLayout(false); - this.flowPanel3.ResumeLayout(false); this.flowPanel4.ResumeLayout(false); + this.flowPanel3.ResumeLayout(false); + this.flowPanel2.ResumeLayout(false); + this.flowPanel1.ResumeLayout(false); this.ResumeLayout(false); } @@ -392,8 +436,11 @@ private AntdUI.ColorPicker colorPicker6; private AntdUI.Label label6; private AntdUI.ColorPicker colorPicker2; - private AntdUI.ColorPicker colorPicker12; private AntdUI.ColorPicker colorPicker5; private AntdUI.ColorPicker colorPicker13; + private AntdUI.ColorPicker colorPicker15; + private AntdUI.ColorPicker colorPicker16; + private AntdUI.ColorPicker colorPicker14; + private AntdUI.ColorPicker colorPicker12; } } diff --git a/Views/SwitchDemo.Designer.cs b/Views/SwitchDemo.Designer.cs index a2efd16..8a94141 100644 --- a/Views/SwitchDemo.Designer.cs +++ b/Views/SwitchDemo.Designer.cs @@ -38,21 +38,26 @@ this.flowPanel1 = new AntdUI.FlowPanel(); this.switch9 = new AntdUI.Switch(); this.switch10 = new AntdUI.Switch(); - this.switch3 = new AntdUI.Switch(); - this.switch4 = new AntdUI.Switch(); this.switch2 = new AntdUI.Switch(); this.switch1 = new AntdUI.Switch(); this.label3 = new AntdUI.Label(); this.divider1 = new AntdUI.Divider(); this.label2 = new AntdUI.Label(); this.label1 = new AntdUI.Label(); + this.label5 = new AntdUI.Label(); + this.flowPanel3 = new AntdUI.FlowPanel(); + this.switch13 = new AntdUI.Switch(); + this.switch14 = new AntdUI.Switch(); this.stackPanel1.SuspendLayout(); this.flowPanel2.SuspendLayout(); this.flowPanel1.SuspendLayout(); + this.flowPanel3.SuspendLayout(); this.SuspendLayout(); // // stackPanel1 // + this.stackPanel1.Controls.Add(this.flowPanel3); + this.stackPanel1.Controls.Add(this.label5); this.stackPanel1.Controls.Add(this.flowPanel2); this.stackPanel1.Controls.Add(this.label4); this.stackPanel1.Controls.Add(this.flowPanel1); @@ -84,6 +89,7 @@ // switch6 // this.switch6.AutoCheck = true; + this.switch6.Checked = true; this.switch6.CheckedText = "True"; this.switch6.Fill = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(87)))), ((int)(((byte)(34))))); this.switch6.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); @@ -99,7 +105,6 @@ // switch5 // this.switch5.AutoCheck = true; - this.switch5.Checked = true; this.switch5.CheckedText = "是"; this.switch5.Fill = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(87)))), ((int)(((byte)(34))))); this.switch5.FillHover = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(133)))), ((int)(((byte)(34))))); @@ -151,8 +156,6 @@ // this.flowPanel1.Controls.Add(this.switch9); this.flowPanel1.Controls.Add(this.switch10); - this.flowPanel1.Controls.Add(this.switch3); - this.flowPanel1.Controls.Add(this.switch4); this.flowPanel1.Controls.Add(this.switch2); this.flowPanel1.Controls.Add(this.switch1); this.flowPanel1.Gap = 6; @@ -165,12 +168,13 @@ // switch9 // this.switch9.AutoCheck = true; + this.switch9.Checked = true; this.switch9.CheckedText = ""; this.switch9.Fill = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(87)))), ((int)(((byte)(34))))); this.switch9.FillHover = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(133)))), ((int)(((byte)(34))))); this.switch9.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.switch9.Gap = 6; - this.switch9.Location = new System.Drawing.Point(363, 3); + this.switch9.Location = new System.Drawing.Point(219, 3); this.switch9.Name = "switch9"; this.switch9.Size = new System.Drawing.Size(60, 32); this.switch9.TabIndex = 9; @@ -181,13 +185,12 @@ // switch10 // this.switch10.AutoCheck = true; - this.switch10.Checked = true; this.switch10.CheckedText = ""; this.switch10.Fill = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(87)))), ((int)(((byte)(34))))); this.switch10.FillHover = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(133)))), ((int)(((byte)(34))))); this.switch10.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.switch10.Gap = 6; - this.switch10.Location = new System.Drawing.Point(291, 3); + this.switch10.Location = new System.Drawing.Point(147, 3); this.switch10.Name = "switch10"; this.switch10.Size = new System.Drawing.Size(60, 32); this.switch10.TabIndex = 8; @@ -195,27 +198,6 @@ this.switch10.UnCheckedText = ""; this.switch10.WaveSize = 0; // - // switch3 - // - this.switch3.AutoCheck = true; - this.switch3.Checked = true; - this.switch3.Enabled = false; - this.switch3.Location = new System.Drawing.Point(219, 3); - this.switch3.Name = "switch3"; - this.switch3.Size = new System.Drawing.Size(60, 32); - this.switch3.TabIndex = 4; - this.switch3.Text = "switch3"; - // - // switch4 - // - this.switch4.AutoCheck = true; - this.switch4.Enabled = false; - this.switch4.Location = new System.Drawing.Point(147, 3); - this.switch4.Name = "switch4"; - this.switch4.Size = new System.Drawing.Size(60, 32); - this.switch4.TabIndex = 3; - this.switch4.Text = "switch4"; - // // switch2 // this.switch2.AutoCheck = true; @@ -269,6 +251,47 @@ this.label1.TabIndex = 17; this.label1.Text = "Switch 开关"; // + // label5 + // + this.label5.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(3, 245); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(694, 24); + this.label5.TabIndex = 24; + this.label5.Text = "禁用"; + // + // flowPanel3 + // + this.flowPanel3.Controls.Add(this.switch13); + this.flowPanel3.Controls.Add(this.switch14); + this.flowPanel3.Gap = 6; + this.flowPanel3.Location = new System.Drawing.Point(3, 275); + this.flowPanel3.Name = "flowPanel3"; + this.flowPanel3.Size = new System.Drawing.Size(694, 38); + this.flowPanel3.TabIndex = 25; + this.flowPanel3.Text = "flowPanel3"; + // + // switch13 + // + this.switch13.AutoCheck = true; + this.switch13.Checked = true; + this.switch13.Enabled = false; + this.switch13.Location = new System.Drawing.Point(75, 3); + this.switch13.Name = "switch13"; + this.switch13.Size = new System.Drawing.Size(60, 32); + this.switch13.TabIndex = 4; + this.switch13.Text = "switch13"; + // + // switch14 + // + this.switch14.AutoCheck = true; + this.switch14.Enabled = false; + this.switch14.Location = new System.Drawing.Point(3, 3); + this.switch14.Name = "switch14"; + this.switch14.Size = new System.Drawing.Size(60, 32); + this.switch14.TabIndex = 3; + this.switch14.Text = "switch14"; + // // SwitchDemo // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; @@ -278,6 +301,7 @@ this.stackPanel1.ResumeLayout(false); this.flowPanel2.ResumeLayout(false); this.flowPanel1.ResumeLayout(false); + this.flowPanel3.ResumeLayout(false); this.ResumeLayout(false); } @@ -292,8 +316,6 @@ private AntdUI.FlowPanel flowPanel1; private AntdUI.Switch switch1; private AntdUI.Switch switch2; - private AntdUI.Switch switch3; - private AntdUI.Switch switch4; private AntdUI.FlowPanel flowPanel2; private AntdUI.Switch switch7; private AntdUI.Switch switch8; @@ -302,5 +324,9 @@ private AntdUI.Switch switch5; private AntdUI.Switch switch9; private AntdUI.Switch switch10; + private AntdUI.FlowPanel flowPanel3; + private AntdUI.Switch switch13; + private AntdUI.Switch switch14; + private AntdUI.Label label5; } }