主窗体:
namespace BackgroudWokerUI
{
partial class MainForm
{
/// <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()
{
this.listBox1 = new System.Windows.Forms.ListBox();
this.listBox2 = new System.Windows.Forms.ListBox();
this.moveButton = new System.Windows.Forms.Button();
this.addButton = new System.Windows.Forms.Button();
this.textBox = new System.Windows.Forms.TextBox();
this.label = new System.Windows.Forms.Label();
this.cancelButton = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.moveBackButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// listBox1
//
this.listBox1.FormattingEnabled = true;
this.listBox1.ItemHeight = 12;
this.listBox1.Location = new System.Drawing.Point(49, 44);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(120, 148);
this.listBox1.TabIndex = 0;
//
// listBox2
//
this.listBox2.FormattingEnabled = true;
this.listBox2.ItemHeight = 12;
this.listBox2.Location = new System.Drawing.Point(224, 44);
this.listBox2.Name = "listBox2";
this.listBox2.Size = new System.Drawing.Size(120, 148);
this.listBox2.TabIndex = 1;
//
// moveButton
//
this.moveButton.Location = new System.Drawing.Point(186, 247);
this.moveButton.Name = "moveButton";
this.moveButton.Size = new System.Drawing.Size(70, 26);
this.moveButton.TabIndex = 2;
this.moveButton.Text = "Move";
this.moveButton.Click += new System.EventHandler(this.moveButton_Click);
//
// addButton
//
this.addButton.Location = new System.Drawing.Point(94, 247);
this.addButton.Name = "addButton";
this.addButton.Size = new System.Drawing.Size(75, 23);
this.addButton.TabIndex = 5;
this.addButton.Text = "Add";
this.addButton.Click += new System.EventHandler(this.addButton_Click);
//
// textBox
//
this.textBox.Location = new System.Drawing.Point(49, 220);
this.textBox.Name = "textBox";
this.textBox.Size = new System.Drawing.Size(120, 21);
this.textBox.TabIndex = 6;
//
// label
//
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(272, 220);
this.label.Name = "label";
this.label.Size = new System.Drawing.Size(0, 0);
this.label.TabIndex = 7;
//
// cancelButton
//
this.cancelButton.Location = new System.Drawing.Point(274, 296);
this.cancelButton.Name = "cancelButton";
this.cancelButton.Size = new System.Drawing.Size(70, 26);
this.cancelButton.TabIndex = 8;
this.cancelButton.Text = "Cancel";
this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(47, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(28, 12);
this.label1.TabIndex = 9;
this.label1.Text = "From";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(222, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(16, 12);
this.label2.TabIndex = 10;
this.label2.Text = "To";
//
// moveBackButton
//
this.moveBackButton.Location = new System.Drawing.Point(274, 247);
this.moveBackButton.Name = "moveBackButton";
this.moveBackButton.Size = new System.Drawing.Size(70, 26);
this.moveBackButton.TabIndex = 11;
this.moveBackButton.Text = "MoveBack";
this.moveBackButton.Click += new System.EventHandler(this.moveBackButton_Click);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(386, 359);
this.Controls.Add(this.moveBackButton);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.cancelButton);
this.Controls.Add(this.label);
this.Controls.Add(this.textBox);
this.Controls.Add(this.addButton);
this.Controls.Add(this.moveButton);
this.Controls.Add(this.listBox2);
this.Controls.Add(this.listBox1);
this.Name = "MainForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "idior.cnblogs.com";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.ListBox listBox2;
private System.Windows.Forms.Button moveButton;
private System.Windows.Forms.Button addButton;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.Label label;
private System.Windows.Forms.Button cancelButton;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button moveBackButton;
}
}
进度条窗体:
//===============================================================================
// Microsoft patterns & practices
// CompositeUI Application Block
//===============================================================================
// Copyright ?Microsoft Corporation. All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
namespace BackgroudWokerUI
{
partial class ProgressForm
{
/// <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()
{
this.progressWork = new System.Windows.Forms.ProgressBar();
this.SuspendLayout();
//
// progressWork
//
this.progressWork.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.progressWork.Location = new System.Drawing.Point(12, 11);
this.progressWork.Name = "progressWork";
this.progressWork.Size = new System.Drawing.Size(221, 21);
this.progressWork.TabIndex = 0;
//
// ProgressForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(245, 43);
this.Controls.Add(this.progressWork);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Name = "ProgressForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "ProgressForm";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ProgressBar progressWork;
}
}