| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279 |
- using System;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.Runtime.CompilerServices;
- using System.Windows.Forms;
- using Microsoft.VisualBasic.CompilerServices;
- namespace Dongke.IBOSS.PRD.Framework.Controls
- {
- [DesignerGenerated]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class progress : Form
- {
- private IContainer components;
- [AccessedThroughProperty("Label1")]
- private Label _Label1;
- [AccessedThroughProperty("Button1")]
- private Button _Button1;
- [AccessedThroughProperty("ToolTip1")]
- private ToolTip _ToolTip1;
- [AccessedThroughProperty("Panel2")]
- private Panel _Panel2;
- [AccessedThroughProperty("Panel3")]
- private Panel _Panel3;
- [AccessedThroughProperty("Button2")]
- private Button _Button2;
- internal virtual Label Label1
- {
- get
- {
- return _Label1;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- _Label1 = value;
- }
- }
- internal virtual Button Button1
- {
- get
- {
- return _Button1;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- EventHandler value2 = Button1_Click;
- if (_Button1 != null)
- {
- _Button1.Click -= value2;
- }
- _Button1 = value;
- if (_Button1 != null)
- {
- _Button1.Click += value2;
- }
- }
- }
- internal virtual ToolTip ToolTip1
- {
- get
- {
- return _ToolTip1;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- _ToolTip1 = value;
- }
- }
- internal virtual Panel Panel2
- {
- get
- {
- return _Panel2;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- _Panel2 = value;
- }
- }
- internal virtual Panel Panel3
- {
- get
- {
- return _Panel3;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- _Panel3 = value;
- }
- }
- internal virtual Button Button2
- {
- get
- {
- return _Button2;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- EventHandler value2 = Button2_Click;
- if (_Button2 != null)
- {
- _Button2.Click -= value2;
- }
- _Button2 = value;
- if (_Button2 != null)
- {
- _Button2.Click += value2;
- }
- }
- }
- public progress()
- {
- base.Load += progress_Load;
- InitializeComponent();
- }
- [DebuggerNonUserCode]
- protected override void Dispose(bool disposing)
- {
- try
- {
- if (disposing && components != null)
- {
- components.Dispose();
- }
- }
- finally
- {
- base.Dispose(disposing);
- }
- }
- [System.Diagnostics.DebuggerStepThrough]
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- this.Label1 = new System.Windows.Forms.Label();
- this.ToolTip1 = new System.Windows.Forms.ToolTip(this.components);
- this.Button1 = new System.Windows.Forms.Button();
- this.Button2 = new System.Windows.Forms.Button();
- this.Panel2 = new System.Windows.Forms.Panel();
- this.Panel3 = new System.Windows.Forms.Panel();
- this.Panel2.SuspendLayout();
- this.Panel3.SuspendLayout();
- base.SuspendLayout();
- this.Label1.BackColor = System.Drawing.SystemColors.Control;
- this.Label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
- this.Label1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.Label1.Font = new System.Drawing.Font("宋体", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
- this.Label1.ForeColor = System.Drawing.SystemColors.ControlText;
- System.Windows.Forms.Control label = this.Label1;
- System.Drawing.Point location = new System.Drawing.Point(0, 0);
- label.Location = location;
- System.Windows.Forms.Control label2 = this.Label1;
- System.Windows.Forms.Padding margin = new System.Windows.Forms.Padding(0);
- label2.Margin = margin;
- this.Label1.Name = "Label1";
- System.Windows.Forms.Control label3 = this.Label1;
- System.Drawing.Size size = new System.Drawing.Size(238, 63);
- label3.Size = size;
- this.Label1.TabIndex = 0;
- this.Label1.Text = "正在处理中,请稍候...";
- this.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- this.Button1.BackColor = System.Drawing.SystemColors.Control;
- this.Button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- System.Windows.Forms.Control button = this.Button1;
- location = new System.Drawing.Point(67, 6);
- button.Location = location;
- this.Button1.Name = "Button1";
- System.Windows.Forms.Control button2 = this.Button1;
- size = new System.Drawing.Size(94, 27);
- button2.Size = size;
- this.Button1.TabIndex = 1;
- this.Button1.Text = "取消";
- this.ToolTip1.SetToolTip(this.Button1, "关闭处理进度窗口,立即取消本次打印预处理");
- this.Button1.UseVisualStyleBackColor = false;
- this.Button2.BackColor = System.Drawing.SystemColors.Control;
- this.Button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- System.Windows.Forms.Control button3 = this.Button2;
- location = new System.Drawing.Point(214, 1);
- button3.Location = location;
- this.Button2.Name = "Button2";
- System.Windows.Forms.Control button4 = this.Button2;
- size = new System.Drawing.Size(24, 21);
- button4.Size = size;
- this.Button2.TabIndex = 2;
- this.ToolTip1.SetToolTip(this.Button2, "关闭状态窗口,但不取消当前正在进行的操作");
- this.Button2.UseVisualStyleBackColor = false;
- this.Button2.Visible = false;
- this.Panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.Panel2.Controls.Add(this.Button1);
- this.Panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
- System.Windows.Forms.Control panel = this.Panel2;
- location = new System.Drawing.Point(0, 65);
- panel.Location = location;
- this.Panel2.Name = "Panel2";
- System.Windows.Forms.Control panel2 = this.Panel2;
- size = new System.Drawing.Size(240, 39);
- panel2.Size = size;
- this.Panel2.TabIndex = 3;
- this.Panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.Panel3.Controls.Add(this.Button2);
- this.Panel3.Controls.Add(this.Label1);
- this.Panel3.Dock = System.Windows.Forms.DockStyle.Fill;
- System.Windows.Forms.Control panel3 = this.Panel3;
- location = new System.Drawing.Point(0, 0);
- panel3.Location = location;
- this.Panel3.Name = "Panel3";
- System.Windows.Forms.Control panel4 = this.Panel3;
- size = new System.Drawing.Size(240, 65);
- panel4.Size = size;
- this.Panel3.TabIndex = 4;
- System.Drawing.SizeF sizeF = new System.Drawing.SizeF(6f, 12f);
- base.AutoScaleDimensions = sizeF;
- base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- size = new System.Drawing.Size(240, 104);
- base.ClientSize = size;
- base.Controls.Add(this.Panel3);
- base.Controls.Add(this.Panel2);
- base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
- base.MaximizeBox = false;
- base.MinimizeBox = false;
- base.Name = "progress";
- base.ShowIcon = false;
- base.ShowInTaskbar = false;
- base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "正在努力处理中,请稍侯";
- this.Panel2.ResumeLayout(false);
- this.Panel3.ResumeLayout(false);
- base.ResumeLayout(false);
- }
- public void SetStatus(string tt)
- {
- Label1.Text = tt;
- Application.DoEvents();
- }
- private void Button1_Click(object sender, EventArgs e)
- {
- base.Visible = false;
- Module1.G_CancelDocument = true;
- Module1.G_CancelPrint = true;
- Close();
- }
- private void progress_Load(object sender, EventArgs e)
- {
- Button1.Visible = true;
- }
- private void Button2_Click(object sender, EventArgs e)
- {
- base.Visible = false;
- Close();
- }
- }
- }
|