From f0df39d65840ec92427ef8d098158ae7181759fb Mon Sep 17 00:00:00 2001 From: czz_y Date: Mon, 9 Sep 2024 08:33:21 +0800 Subject: [PATCH] =?UTF-8?q?Rate=E6=94=AF=E6=8C=81=E5=8D=95=E4=B8=AA?= =?UTF-8?q?=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Views/RateDemo.Designer.cs | 347 +++++++++++++++++++------------------ Views/RateDemo.resx | 3 - 2 files changed, 180 insertions(+), 170 deletions(-) diff --git a/Views/RateDemo.Designer.cs b/Views/RateDemo.Designer.cs index 0c70379..5abcd5f 100644 --- a/Views/RateDemo.Designer.cs +++ b/Views/RateDemo.Designer.cs @@ -30,29 +30,30 @@ { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RateDemo)); this.stackPanel1 = new AntdUI.StackPanel(); + this.flowPanel4 = new AntdUI.FlowPanel(); + this.rate6 = new AntdUI.Rate(); + this.rate5 = new AntdUI.Rate(); + this.label6 = new AntdUI.Label(); + this.flowPanel3 = new AntdUI.FlowPanel(); + this.rate4 = new AntdUI.Rate(); + this.label5 = new AntdUI.Label(); + this.flowPanel2 = new AntdUI.FlowPanel(); + this.rate3 = new AntdUI.Rate(); + this.label4 = new AntdUI.Label(); + this.flowPanel1 = new AntdUI.FlowPanel(); + this.rate7 = new AntdUI.Rate(); + this.rate2 = new AntdUI.Rate(); + this.rate1 = new AntdUI.Rate(); + this.label3 = new AntdUI.Label(); this.divider1 = new AntdUI.Divider(); this.label2 = new AntdUI.Label(); this.label1 = new AntdUI.Label(); - this.flowPanel1 = new AntdUI.FlowPanel(); - this.label3 = new AntdUI.Label(); - this.rate1 = new AntdUI.Rate(); - this.rate2 = new AntdUI.Rate(); - this.label4 = new AntdUI.Label(); - this.flowPanel2 = new AntdUI.FlowPanel(); - this.rate3 = new AntdUI.Rate(); - this.label5 = new AntdUI.Label(); - this.flowPanel3 = new AntdUI.FlowPanel(); - this.rate4 = new AntdUI.Rate(); - this.label6 = new AntdUI.Label(); - this.flowPanel4 = new AntdUI.FlowPanel(); - this.rate5 = new AntdUI.Rate(); - this.rate6 = new AntdUI.Rate(); - this.rate7 = new AntdUI.Rate(); + this.rate8 = new AntdUI.Rate(); 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 @@ -76,6 +77,155 @@ this.stackPanel1.Text = "stackPanel1"; this.stackPanel1.Vertical = true; // + // flowPanel4 + // + this.flowPanel4.Controls.Add(this.rate8); + this.flowPanel4.Controls.Add(this.rate6); + this.flowPanel4.Controls.Add(this.rate5); + 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 = 18; + this.flowPanel4.Text = "flowPanel4"; + // + // rate6 + // + this.rate6.Character = "A"; + this.rate6.Location = new System.Drawing.Point(209, 3); + this.rate6.Name = "rate6"; + this.rate6.Size = new System.Drawing.Size(200, 32); + this.rate6.TabIndex = 2; + this.rate6.Text = "rate6"; + this.rate6.Value = 3F; + // + // rate5 + // + this.rate5.Character = resources.GetString("rate5.Character"); + this.rate5.Location = new System.Drawing.Point(3, 3); + this.rate5.Name = "rate5"; + this.rate5.Size = new System.Drawing.Size(200, 32); + this.rate5.TabIndex = 1; + this.rate5.Text = "rate5"; + this.rate5.Value = 3F; + // + // 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 = 17; + this.label6.Text = "字符自定义"; + // + // flowPanel3 + // + this.flowPanel3.Controls.Add(this.rate4); + 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 = 16; + this.flowPanel3.Text = "flowPanel3"; + // + // rate4 + // + this.rate4.Location = new System.Drawing.Point(3, 3); + this.rate4.Name = "rate4"; + this.rate4.Size = new System.Drawing.Size(200, 32); + this.rate4.TabIndex = 1; + this.rate4.Text = "rate4"; + this.rate4.Tooltips = new string[] { + "terrible", + "bad", + "normal", + "good", + "wonderful"}; + this.rate4.Value = 3F; + // + // 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 = 15; + this.label5.Text = "提示信息"; + // + // flowPanel2 + // + this.flowPanel2.Controls.Add(this.rate3); + 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 = 14; + this.flowPanel2.Text = "flowPanel2"; + // + // rate3 + // + this.rate3.AllowHalf = true; + this.rate3.Location = new System.Drawing.Point(3, 3); + this.rate3.Name = "rate3"; + this.rate3.Size = new System.Drawing.Size(200, 32); + this.rate3.TabIndex = 1; + this.rate3.Text = "rate3"; + this.rate3.Value = 2.5F; + // + // 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 = 13; + this.label4.Text = "半星"; + // + // flowPanel1 + // + this.flowPanel1.Controls.Add(this.rate7); + this.flowPanel1.Controls.Add(this.rate2); + this.flowPanel1.Controls.Add(this.rate1); + this.flowPanel1.Location = new System.Drawing.Point(3, 127); + this.flowPanel1.Name = "flowPanel1"; + this.flowPanel1.Size = new System.Drawing.Size(694, 38); + this.flowPanel1.TabIndex = 12; + this.flowPanel1.Text = "flowPanel1"; + // + // rate7 + // + this.rate7.Fill = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.rate7.Location = new System.Drawing.Point(415, 3); + this.rate7.Name = "rate7"; + this.rate7.Size = new System.Drawing.Size(200, 32); + this.rate7.TabIndex = 2; + this.rate7.Text = "rate7"; + this.rate7.Value = 3F; + // + // rate2 + // + this.rate2.Location = new System.Drawing.Point(209, 3); + this.rate2.Name = "rate2"; + this.rate2.Size = new System.Drawing.Size(200, 32); + this.rate2.TabIndex = 1; + this.rate2.Text = "rate2"; + this.rate2.Value = 3F; + // + // rate1 + // + this.rate1.Count = 3; + this.rate1.Location = new System.Drawing.Point(3, 3); + this.rate1.Name = "rate1"; + this.rate1.Size = new System.Drawing.Size(200, 32); + this.rate1.TabIndex = 0; + this.rate1.Text = "rate1"; + // + // label3 + // + this.label3.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label3.Location = new System.Drawing.Point(3, 97); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(694, 24); + this.label3.TabIndex = 11; + this.label3.Text = "基本用法"; + // // divider1 // this.divider1.Location = new System.Drawing.Point(3, 79); @@ -101,153 +251,15 @@ this.label1.TabIndex = 8; this.label1.Text = "Rate 评分"; // - // flowPanel1 + // rate8 // - this.flowPanel1.Controls.Add(this.rate7); - this.flowPanel1.Controls.Add(this.rate2); - this.flowPanel1.Controls.Add(this.rate1); - this.flowPanel1.Location = new System.Drawing.Point(3, 127); - this.flowPanel1.Name = "flowPanel1"; - this.flowPanel1.Size = new System.Drawing.Size(694, 38); - this.flowPanel1.TabIndex = 12; - this.flowPanel1.Text = "flowPanel1"; - // - // label3 - // - this.label3.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label3.Location = new System.Drawing.Point(3, 97); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(694, 24); - this.label3.TabIndex = 11; - this.label3.Text = "基本用法"; - // - // rate1 - // - this.rate1.Count = 3; - this.rate1.Location = new System.Drawing.Point(3, 3); - this.rate1.Name = "rate1"; - this.rate1.Size = new System.Drawing.Size(200, 32); - this.rate1.TabIndex = 0; - this.rate1.Text = "rate1"; - // - // rate2 - // - this.rate2.Location = new System.Drawing.Point(209, 3); - this.rate2.Name = "rate2"; - this.rate2.Size = new System.Drawing.Size(200, 32); - this.rate2.TabIndex = 1; - this.rate2.Text = "rate2"; - this.rate2.Value = 3F; - // - // 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 = 13; - this.label4.Text = "半星"; - // - // flowPanel2 - // - this.flowPanel2.Controls.Add(this.rate3); - 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 = 14; - this.flowPanel2.Text = "flowPanel2"; - // - // rate3 - // - this.rate3.AllowHalf = true; - this.rate3.Location = new System.Drawing.Point(3, 3); - this.rate3.Name = "rate3"; - this.rate3.Size = new System.Drawing.Size(200, 32); - this.rate3.TabIndex = 1; - this.rate3.Text = "rate3"; - this.rate3.Value = 2.5F; - // - // 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 = 15; - this.label5.Text = "提示信息"; - // - // flowPanel3 - // - this.flowPanel3.Controls.Add(this.rate4); - 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 = 16; - this.flowPanel3.Text = "flowPanel3"; - // - // rate4 - // - this.rate4.Location = new System.Drawing.Point(3, 3); - this.rate4.Name = "rate4"; - this.rate4.Size = new System.Drawing.Size(200, 32); - this.rate4.TabIndex = 1; - this.rate4.Text = "rate4"; - this.rate4.Tooltips = new string[] { - "terrible", - "bad", - "normal", - "good", - "wonderful"}; - this.rate4.Value = 3F; - // - // 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 = 17; - this.label6.Text = "字符自定义"; - // - // flowPanel4 - // - this.flowPanel4.Controls.Add(this.rate6); - this.flowPanel4.Controls.Add(this.rate5); - 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 = 18; - this.flowPanel4.Text = "flowPanel4"; - // - // rate5 - // - this.rate5.Character = resources.GetString("rate5.Character"); - this.rate5.Location = new System.Drawing.Point(3, 3); - this.rate5.Name = "rate5"; - this.rate5.Size = new System.Drawing.Size(200, 32); - this.rate5.TabIndex = 1; - this.rate5.Text = "rate5"; - this.rate5.Value = 3F; - // - // rate6 - // - this.rate6.Character = resources.GetString("rate6.Character"); - this.rate6.Location = new System.Drawing.Point(209, 3); - this.rate6.Name = "rate6"; - this.rate6.Size = new System.Drawing.Size(200, 32); - this.rate6.TabIndex = 2; - this.rate6.Text = "rate6"; - this.rate6.Value = 3F; - // - // rate7 - // - this.rate7.Fill = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); - this.rate7.Location = new System.Drawing.Point(415, 3); - this.rate7.Name = "rate7"; - this.rate7.Size = new System.Drawing.Size(200, 32); - this.rate7.TabIndex = 2; - this.rate7.Text = "rate7"; - this.rate7.Value = 3F; + this.rate8.Character = "好"; + this.rate8.Location = new System.Drawing.Point(415, 3); + this.rate8.Name = "rate8"; + this.rate8.Size = new System.Drawing.Size(200, 32); + this.rate8.TabIndex = 3; + this.rate8.Text = "rate8"; + this.rate8.Value = 3F; // // RateDemo // @@ -256,10 +268,10 @@ this.Name = "RateDemo"; 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); } @@ -285,5 +297,6 @@ private AntdUI.Label label6; private AntdUI.Rate rate6; private AntdUI.Rate rate7; + private AntdUI.Rate rate8; } } diff --git a/Views/RateDemo.resx b/Views/RateDemo.resx index 701f87b..ccd2749 100644 --- a/Views/RateDemo.resx +++ b/Views/RateDemo.resx @@ -117,9 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - <svg viewBox="64 64 896 896" focusable="false" data-icon="search" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"></path></svg> - <svg viewBox="64 64 896 896" focusable="false" data-icon="poweroff" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"></path></svg>