优化Timeline Demo界面显示
This commit is contained in:
parent
5e94f2a098
commit
4384389ad9
@ -30,14 +30,14 @@ namespace AntdUIDemo
|
|||||||
static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
|
static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
|
||||||
{
|
{
|
||||||
LoggerHelper.Logger.Fatal(e.Exception, "未处理的UI线程异常");
|
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线程中的未处理异常
|
// 捕获非UI线程中的未处理异常
|
||||||
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
|
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
|
||||||
{
|
{
|
||||||
LoggerHelper.Logger.Fatal(e.ExceptionObject as Exception, "未处理的非UI线程异常");
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
78
Views/TimelineDemo.Designer.cs
generated
78
Views/TimelineDemo.Designer.cs
generated
@ -35,11 +35,11 @@
|
|||||||
AntdUI.TimelineItem timelineItem5 = new AntdUI.TimelineItem();
|
AntdUI.TimelineItem timelineItem5 = new AntdUI.TimelineItem();
|
||||||
AntdUI.TimelineItem timelineItem6 = new AntdUI.TimelineItem();
|
AntdUI.TimelineItem timelineItem6 = new AntdUI.TimelineItem();
|
||||||
this.stackPanel1 = new AntdUI.StackPanel();
|
this.stackPanel1 = new AntdUI.StackPanel();
|
||||||
|
this.timeline1 = new AntdUI.Timeline();
|
||||||
|
this.label3 = new AntdUI.Label();
|
||||||
this.divider1 = new AntdUI.Divider();
|
this.divider1 = new AntdUI.Divider();
|
||||||
this.label2 = new AntdUI.Label();
|
this.label2 = new AntdUI.Label();
|
||||||
this.label1 = new AntdUI.Label();
|
this.label1 = new AntdUI.Label();
|
||||||
this.label3 = new AntdUI.Label();
|
|
||||||
this.timeline1 = new AntdUI.Timeline();
|
|
||||||
this.stackPanel1.SuspendLayout();
|
this.stackPanel1.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
@ -53,45 +53,11 @@
|
|||||||
this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.stackPanel1.Location = new System.Drawing.Point(0, 0);
|
this.stackPanel1.Location = new System.Drawing.Point(0, 0);
|
||||||
this.stackPanel1.Name = "stackPanel1";
|
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.TabIndex = 0;
|
||||||
this.stackPanel1.Text = "stackPanel1";
|
this.stackPanel1.Text = "stackPanel1";
|
||||||
this.stackPanel1.Vertical = true;
|
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
|
// timeline1
|
||||||
//
|
//
|
||||||
this.timeline1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
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.Items.Add(timelineItem6);
|
||||||
this.timeline1.Location = new System.Drawing.Point(3, 127);
|
this.timeline1.Location = new System.Drawing.Point(3, 127);
|
||||||
this.timeline1.Name = "timeline1";
|
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.TabIndex = 32;
|
||||||
this.timeline1.Text = "timeline1";
|
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
|
// TimelineDemo
|
||||||
//
|
//
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
|
||||||
this.Controls.Add(this.stackPanel1);
|
this.Controls.Add(this.stackPanel1);
|
||||||
this.Name = "TimelineDemo";
|
this.Name = "TimelineDemo";
|
||||||
this.Size = new System.Drawing.Size(700, 642);
|
this.Size = new System.Drawing.Size(700, 509);
|
||||||
this.stackPanel1.ResumeLayout(false);
|
this.stackPanel1.ResumeLayout(false);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user