加载界面、程序关闭界面、单例模式

This commit is contained in:
2025-03-24 18:21:21 +08:00
parent 126db6bf91
commit 2b32e1a649
12 changed files with 807 additions and 199 deletions

View File

@ -34,8 +34,8 @@ namespace DHSoftware.Views
panel2 = new AntdUI.Panel();
spin1 = new AntdUI.Spin();
panel3 = new AntdUI.Panel();
progressBar1 = new ProgressBar();
label1 = new AntdUI.Label();
bar_step = new ProgressBar();
lbl_step = new AntdUI.Label();
titlebar = new AntdUI.PageHeader();
panel1.SuspendLayout();
panel2.SuspendLayout();
@ -81,8 +81,8 @@ namespace DHSoftware.Views
// panel3
//
panel3.Back = Color.Transparent;
panel3.Controls.Add(progressBar1);
panel3.Controls.Add(label1);
panel3.Controls.Add(bar_step);
panel3.Controls.Add(lbl_step);
panel3.Dock = DockStyle.Bottom;
panel3.Location = new Point(0, 309);
panel3.Name = "panel3";
@ -91,27 +91,27 @@ namespace DHSoftware.Views
panel3.TabIndex = 3;
panel3.Text = "panel3";
//
// progressBar1
// bar_step
//
progressBar1.Dock = DockStyle.Bottom;
progressBar1.Location = new Point(0, 54);
progressBar1.Name = "progressBar1";
progressBar1.Size = new Size(646, 12);
progressBar1.TabIndex = 1;
bar_step.Dock = DockStyle.Bottom;
bar_step.Location = new Point(0, 54);
bar_step.Name = "bar_step";
bar_step.Size = new Size(646, 12);
bar_step.TabIndex = 1;
//
// label1
// lbl_step
//
label1.Font = new Font("Microsoft YaHei UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
label1.ForeColor = SystemColors.Window;
label1.Location = new Point(24, 15);
label1.Name = "label1";
label1.Size = new Size(590, 33);
label1.TabIndex = 0;
label1.Text = "正在初始化...";
lbl_step.Font = new Font("Microsoft YaHei UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
lbl_step.ForeColor = SystemColors.Window;
lbl_step.Location = new Point(24, 15);
lbl_step.Name = "lbl_step";
lbl_step.Size = new Size(590, 33);
lbl_step.TabIndex = 0;
lbl_step.Text = "正在初始化...";
//
// titlebar
//
titlebar.BackColor = SystemColors.MenuHighlight;
titlebar.BackColor = Color.FromArgb(46, 108, 227);
titlebar.DividerShow = true;
titlebar.DividerThickness = 0F;
titlebar.Dock = DockStyle.Top;
@ -132,7 +132,7 @@ namespace DHSoftware.Views
//
AutoScaleDimensions = new SizeF(7F, 17F);
AutoScaleMode = AutoScaleMode.Font;
BackColor = SystemColors.MenuHighlight;
BackColor = Color.FromArgb(46, 108, 227);
ClientSize = new Size(646, 375);
ControlBox = false;
Controls.Add(panel1);
@ -158,7 +158,7 @@ namespace DHSoftware.Views
private AntdUI.Panel panel3;
private AntdUI.Panel panel2;
private AntdUI.Spin spin1;
private AntdUI.Label label1;
private ProgressBar progressBar1;
public AntdUI.Label lbl_step;
public ProgressBar bar_step;
}
}