137 lines
5.2 KiB
C#
137 lines
5.2 KiB
C#
namespace SpineViewer
|
|
{
|
|
partial class ProgressDialog
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
progressBar = new ProgressBar();
|
|
panel1 = new Panel();
|
|
tableLayoutPanel1 = new TableLayoutPanel();
|
|
button_Cancel = new Button();
|
|
label_Tip = new Label();
|
|
backgroundWorker = new System.ComponentModel.BackgroundWorker();
|
|
panel1.SuspendLayout();
|
|
tableLayoutPanel1.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// progressBar
|
|
//
|
|
progressBar.Dock = DockStyle.Fill;
|
|
progressBar.Location = new Point(3, 57);
|
|
progressBar.Name = "progressBar";
|
|
progressBar.Size = new Size(552, 34);
|
|
progressBar.Style = ProgressBarStyle.Continuous;
|
|
progressBar.TabIndex = 0;
|
|
//
|
|
// panel1
|
|
//
|
|
panel1.Controls.Add(tableLayoutPanel1);
|
|
panel1.Dock = DockStyle.Fill;
|
|
panel1.Location = new Point(0, 0);
|
|
panel1.Name = "panel1";
|
|
panel1.Padding = new Padding(30);
|
|
panel1.Size = new Size(618, 206);
|
|
panel1.TabIndex = 1;
|
|
//
|
|
// tableLayoutPanel1
|
|
//
|
|
tableLayoutPanel1.ColumnCount = 1;
|
|
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
|
|
tableLayoutPanel1.Controls.Add(progressBar, 0, 1);
|
|
tableLayoutPanel1.Controls.Add(button_Cancel, 0, 2);
|
|
tableLayoutPanel1.Controls.Add(label_Tip, 0, 0);
|
|
tableLayoutPanel1.Dock = DockStyle.Fill;
|
|
tableLayoutPanel1.Location = new Point(30, 30);
|
|
tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
tableLayoutPanel1.RowCount = 3;
|
|
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
|
|
tableLayoutPanel1.RowStyles.Add(new RowStyle());
|
|
tableLayoutPanel1.RowStyles.Add(new RowStyle());
|
|
tableLayoutPanel1.Size = new Size(558, 146);
|
|
tableLayoutPanel1.TabIndex = 1;
|
|
//
|
|
// button_Cancel
|
|
//
|
|
button_Cancel.Anchor = AnchorStyles.Bottom;
|
|
button_Cancel.Location = new Point(223, 109);
|
|
button_Cancel.Margin = new Padding(3, 15, 3, 3);
|
|
button_Cancel.Name = "button_Cancel";
|
|
button_Cancel.Size = new Size(112, 34);
|
|
button_Cancel.TabIndex = 9;
|
|
button_Cancel.Text = "取消";
|
|
button_Cancel.UseVisualStyleBackColor = true;
|
|
button_Cancel.Click += button_Cancel_Click;
|
|
//
|
|
// label_Tip
|
|
//
|
|
label_Tip.AutoSize = true;
|
|
label_Tip.Dock = DockStyle.Fill;
|
|
label_Tip.Location = new Point(3, 10);
|
|
label_Tip.Margin = new Padding(3, 10, 3, 10);
|
|
label_Tip.Name = "label_Tip";
|
|
label_Tip.Size = new Size(552, 34);
|
|
label_Tip.TabIndex = 10;
|
|
label_Tip.Text = "正在处理 34/100";
|
|
//
|
|
// backgroundWorker
|
|
//
|
|
backgroundWorker.WorkerReportsProgress = true;
|
|
backgroundWorker.WorkerSupportsCancellation = true;
|
|
backgroundWorker.ProgressChanged += backgroundWorker_ProgressChanged;
|
|
backgroundWorker.RunWorkerCompleted += backgroundWorker_RunWorkerCompleted;
|
|
//
|
|
// ProgressDialog
|
|
//
|
|
AutoScaleDimensions = new SizeF(11F, 24F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(618, 206);
|
|
ControlBox = false;
|
|
Controls.Add(panel1);
|
|
FormBorderStyle = FormBorderStyle.FixedDialog;
|
|
MaximizeBox = false;
|
|
MinimizeBox = false;
|
|
Name = "ProgressDialog";
|
|
ShowIcon = false;
|
|
ShowInTaskbar = false;
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "进度";
|
|
panel1.ResumeLayout(false);
|
|
tableLayoutPanel1.ResumeLayout(false);
|
|
tableLayoutPanel1.PerformLayout();
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
|
|
private ProgressBar progressBar;
|
|
private Panel panel1;
|
|
private TableLayoutPanel tableLayoutPanel1;
|
|
private System.ComponentModel.BackgroundWorker backgroundWorker;
|
|
private Label label_Tip;
|
|
private Button button_Cancel;
|
|
}
|
|
} |