From 4384389ad965af2e152e1d7d205ca65ef75d995c Mon Sep 17 00:00:00 2001 From: czz_y Date: Sun, 1 Sep 2024 21:27:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Timeline=20Demo=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program.cs | 4 +- Views/TimelineDemo.Designer.cs | 78 +++++++++++++++++----------------- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/Program.cs b/Program.cs index 474a9b8..fc2e322 100644 --- a/Program.cs +++ b/Program.cs @@ -30,14 +30,14 @@ namespace AntdUIDemo static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { LoggerHelper.Logger.Fatal(e.Exception, "未处理的UI线程异常"); - AntdUI.Notification.error(mainWindow, "未处理的UI线程异常", e.Exception.Message, autoClose: 3, align: AntdUI.TAlignFrom.BR); + AntdUI.Notification.error(mainWindow, "未处理的UI线程异常", e.Exception.Message, autoClose: 3, align: AntdUI.TAlignFrom.TR); } // 捕获非UI线程中的未处理异常 static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { LoggerHelper.Logger.Fatal(e.ExceptionObject as Exception, "未处理的非UI线程异常"); - AntdUI.Notification.error(mainWindow, "未处理的非UI线程异常", e.ToString(), autoClose: 3, align: AntdUI.TAlignFrom.BR); + AntdUI.Notification.error(mainWindow, "未处理的非UI线程异常", e.ToString(), autoClose: 3, align: AntdUI.TAlignFrom.TR); } } } diff --git a/Views/TimelineDemo.Designer.cs b/Views/TimelineDemo.Designer.cs index 71f50e6..71be1b1 100644 --- a/Views/TimelineDemo.Designer.cs +++ b/Views/TimelineDemo.Designer.cs @@ -35,11 +35,11 @@ AntdUI.TimelineItem timelineItem5 = new AntdUI.TimelineItem(); AntdUI.TimelineItem timelineItem6 = new AntdUI.TimelineItem(); this.stackPanel1 = new AntdUI.StackPanel(); + this.timeline1 = new AntdUI.Timeline(); + this.label3 = new AntdUI.Label(); this.divider1 = new AntdUI.Divider(); this.label2 = new AntdUI.Label(); this.label1 = new AntdUI.Label(); - this.label3 = new AntdUI.Label(); - this.timeline1 = new AntdUI.Timeline(); this.stackPanel1.SuspendLayout(); this.SuspendLayout(); // @@ -53,45 +53,11 @@ this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.stackPanel1.Location = new System.Drawing.Point(0, 0); this.stackPanel1.Name = "stackPanel1"; - this.stackPanel1.Size = new System.Drawing.Size(700, 642); + this.stackPanel1.Size = new System.Drawing.Size(700, 509); this.stackPanel1.TabIndex = 0; this.stackPanel1.Text = "stackPanel1"; this.stackPanel1.Vertical = true; // - // divider1 - // - this.divider1.Location = new System.Drawing.Point(3, 79); - this.divider1.Name = "divider1"; - this.divider1.Size = new System.Drawing.Size(694, 12); - this.divider1.TabIndex = 30; - // - // label2 - // - this.label2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label2.Location = new System.Drawing.Point(3, 49); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(694, 24); - this.label2.TabIndex = 29; - this.label2.Text = "垂直展示的时间流信息。"; - // - // label1 - // - this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label1.Location = new System.Drawing.Point(3, 3); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(694, 40); - this.label1.TabIndex = 28; - this.label1.Text = "Timeline 时间轴"; - // - // 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 = 31; - this.label3.Text = "基本用法"; - // // timeline1 // this.timeline1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); @@ -120,16 +86,50 @@ this.timeline1.Items.Add(timelineItem6); this.timeline1.Location = new System.Drawing.Point(3, 127); this.timeline1.Name = "timeline1"; - this.timeline1.Size = new System.Drawing.Size(694, 432); + this.timeline1.Size = new System.Drawing.Size(694, 379); this.timeline1.TabIndex = 32; this.timeline1.Text = "timeline1"; // + // 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 = 31; + this.label3.Text = "基本用法"; + // + // divider1 + // + this.divider1.Location = new System.Drawing.Point(3, 79); + this.divider1.Name = "divider1"; + this.divider1.Size = new System.Drawing.Size(694, 12); + this.divider1.TabIndex = 30; + // + // label2 + // + this.label2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label2.Location = new System.Drawing.Point(3, 49); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(694, 24); + this.label2.TabIndex = 29; + this.label2.Text = "垂直展示的时间流信息。"; + // + // label1 + // + this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label1.Location = new System.Drawing.Point(3, 3); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(694, 40); + this.label1.TabIndex = 28; + this.label1.Text = "Timeline 时间轴"; + // // TimelineDemo // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; this.Controls.Add(this.stackPanel1); this.Name = "TimelineDemo"; - this.Size = new System.Drawing.Size(700, 642); + this.Size = new System.Drawing.Size(700, 509); this.stackPanel1.ResumeLayout(false); this.ResumeLayout(false);