progress.cs 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. using System;
  2. using System.ComponentModel;
  3. using System.Diagnostics;
  4. using System.Drawing;
  5. using System.Runtime.CompilerServices;
  6. using System.Windows.Forms;
  7. using Microsoft.VisualBasic.CompilerServices;
  8. namespace Dongke.IBOSS.PRD.Framework.Controls
  9. {
  10. [DesignerGenerated]
  11. [EditorBrowsable(EditorBrowsableState.Never)]
  12. public class progress : Form
  13. {
  14. private IContainer components;
  15. [AccessedThroughProperty("Label1")]
  16. private Label _Label1;
  17. [AccessedThroughProperty("Button1")]
  18. private Button _Button1;
  19. [AccessedThroughProperty("ToolTip1")]
  20. private ToolTip _ToolTip1;
  21. [AccessedThroughProperty("Panel2")]
  22. private Panel _Panel2;
  23. [AccessedThroughProperty("Panel3")]
  24. private Panel _Panel3;
  25. [AccessedThroughProperty("Button2")]
  26. private Button _Button2;
  27. internal virtual Label Label1
  28. {
  29. get
  30. {
  31. return _Label1;
  32. }
  33. [MethodImpl(MethodImplOptions.Synchronized)]
  34. set
  35. {
  36. _Label1 = value;
  37. }
  38. }
  39. internal virtual Button Button1
  40. {
  41. get
  42. {
  43. return _Button1;
  44. }
  45. [MethodImpl(MethodImplOptions.Synchronized)]
  46. set
  47. {
  48. EventHandler value2 = Button1_Click;
  49. if (_Button1 != null)
  50. {
  51. _Button1.Click -= value2;
  52. }
  53. _Button1 = value;
  54. if (_Button1 != null)
  55. {
  56. _Button1.Click += value2;
  57. }
  58. }
  59. }
  60. internal virtual ToolTip ToolTip1
  61. {
  62. get
  63. {
  64. return _ToolTip1;
  65. }
  66. [MethodImpl(MethodImplOptions.Synchronized)]
  67. set
  68. {
  69. _ToolTip1 = value;
  70. }
  71. }
  72. internal virtual Panel Panel2
  73. {
  74. get
  75. {
  76. return _Panel2;
  77. }
  78. [MethodImpl(MethodImplOptions.Synchronized)]
  79. set
  80. {
  81. _Panel2 = value;
  82. }
  83. }
  84. internal virtual Panel Panel3
  85. {
  86. get
  87. {
  88. return _Panel3;
  89. }
  90. [MethodImpl(MethodImplOptions.Synchronized)]
  91. set
  92. {
  93. _Panel3 = value;
  94. }
  95. }
  96. internal virtual Button Button2
  97. {
  98. get
  99. {
  100. return _Button2;
  101. }
  102. [MethodImpl(MethodImplOptions.Synchronized)]
  103. set
  104. {
  105. EventHandler value2 = Button2_Click;
  106. if (_Button2 != null)
  107. {
  108. _Button2.Click -= value2;
  109. }
  110. _Button2 = value;
  111. if (_Button2 != null)
  112. {
  113. _Button2.Click += value2;
  114. }
  115. }
  116. }
  117. public progress()
  118. {
  119. base.Load += progress_Load;
  120. InitializeComponent();
  121. }
  122. [DebuggerNonUserCode]
  123. protected override void Dispose(bool disposing)
  124. {
  125. try
  126. {
  127. if (disposing && components != null)
  128. {
  129. components.Dispose();
  130. }
  131. }
  132. finally
  133. {
  134. base.Dispose(disposing);
  135. }
  136. }
  137. [System.Diagnostics.DebuggerStepThrough]
  138. private void InitializeComponent()
  139. {
  140. this.components = new System.ComponentModel.Container();
  141. this.Label1 = new System.Windows.Forms.Label();
  142. this.ToolTip1 = new System.Windows.Forms.ToolTip(this.components);
  143. this.Button1 = new System.Windows.Forms.Button();
  144. this.Button2 = new System.Windows.Forms.Button();
  145. this.Panel2 = new System.Windows.Forms.Panel();
  146. this.Panel3 = new System.Windows.Forms.Panel();
  147. this.Panel2.SuspendLayout();
  148. this.Panel3.SuspendLayout();
  149. base.SuspendLayout();
  150. this.Label1.BackColor = System.Drawing.SystemColors.Control;
  151. this.Label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
  152. this.Label1.Dock = System.Windows.Forms.DockStyle.Fill;
  153. this.Label1.Font = new System.Drawing.Font("宋体", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
  154. this.Label1.ForeColor = System.Drawing.SystemColors.ControlText;
  155. System.Windows.Forms.Control label = this.Label1;
  156. System.Drawing.Point location = new System.Drawing.Point(0, 0);
  157. label.Location = location;
  158. System.Windows.Forms.Control label2 = this.Label1;
  159. System.Windows.Forms.Padding margin = new System.Windows.Forms.Padding(0);
  160. label2.Margin = margin;
  161. this.Label1.Name = "Label1";
  162. System.Windows.Forms.Control label3 = this.Label1;
  163. System.Drawing.Size size = new System.Drawing.Size(238, 63);
  164. label3.Size = size;
  165. this.Label1.TabIndex = 0;
  166. this.Label1.Text = "正在处理中,请稍候...";
  167. this.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  168. this.Button1.BackColor = System.Drawing.SystemColors.Control;
  169. this.Button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
  170. System.Windows.Forms.Control button = this.Button1;
  171. location = new System.Drawing.Point(67, 6);
  172. button.Location = location;
  173. this.Button1.Name = "Button1";
  174. System.Windows.Forms.Control button2 = this.Button1;
  175. size = new System.Drawing.Size(94, 27);
  176. button2.Size = size;
  177. this.Button1.TabIndex = 1;
  178. this.Button1.Text = "取消";
  179. this.ToolTip1.SetToolTip(this.Button1, "关闭处理进度窗口,立即取消本次打印预处理");
  180. this.Button1.UseVisualStyleBackColor = false;
  181. this.Button2.BackColor = System.Drawing.SystemColors.Control;
  182. this.Button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
  183. System.Windows.Forms.Control button3 = this.Button2;
  184. location = new System.Drawing.Point(214, 1);
  185. button3.Location = location;
  186. this.Button2.Name = "Button2";
  187. System.Windows.Forms.Control button4 = this.Button2;
  188. size = new System.Drawing.Size(24, 21);
  189. button4.Size = size;
  190. this.Button2.TabIndex = 2;
  191. this.ToolTip1.SetToolTip(this.Button2, "关闭状态窗口,但不取消当前正在进行的操作");
  192. this.Button2.UseVisualStyleBackColor = false;
  193. this.Button2.Visible = false;
  194. this.Panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  195. this.Panel2.Controls.Add(this.Button1);
  196. this.Panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
  197. System.Windows.Forms.Control panel = this.Panel2;
  198. location = new System.Drawing.Point(0, 65);
  199. panel.Location = location;
  200. this.Panel2.Name = "Panel2";
  201. System.Windows.Forms.Control panel2 = this.Panel2;
  202. size = new System.Drawing.Size(240, 39);
  203. panel2.Size = size;
  204. this.Panel2.TabIndex = 3;
  205. this.Panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  206. this.Panel3.Controls.Add(this.Button2);
  207. this.Panel3.Controls.Add(this.Label1);
  208. this.Panel3.Dock = System.Windows.Forms.DockStyle.Fill;
  209. System.Windows.Forms.Control panel3 = this.Panel3;
  210. location = new System.Drawing.Point(0, 0);
  211. panel3.Location = location;
  212. this.Panel3.Name = "Panel3";
  213. System.Windows.Forms.Control panel4 = this.Panel3;
  214. size = new System.Drawing.Size(240, 65);
  215. panel4.Size = size;
  216. this.Panel3.TabIndex = 4;
  217. System.Drawing.SizeF sizeF = new System.Drawing.SizeF(6f, 12f);
  218. base.AutoScaleDimensions = sizeF;
  219. base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  220. size = new System.Drawing.Size(240, 104);
  221. base.ClientSize = size;
  222. base.Controls.Add(this.Panel3);
  223. base.Controls.Add(this.Panel2);
  224. base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
  225. base.MaximizeBox = false;
  226. base.MinimizeBox = false;
  227. base.Name = "progress";
  228. base.ShowIcon = false;
  229. base.ShowInTaskbar = false;
  230. base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  231. this.Text = "正在努力处理中,请稍侯";
  232. this.Panel2.ResumeLayout(false);
  233. this.Panel3.ResumeLayout(false);
  234. base.ResumeLayout(false);
  235. }
  236. public void SetStatus(string tt)
  237. {
  238. Label1.Text = tt;
  239. Application.DoEvents();
  240. }
  241. private void Button1_Click(object sender, EventArgs e)
  242. {
  243. base.Visible = false;
  244. Module1.G_CancelDocument = true;
  245. Module1.G_CancelPrint = true;
  246. Close();
  247. }
  248. private void progress_Load(object sender, EventArgs e)
  249. {
  250. Button1.Visible = true;
  251. }
  252. private void Button2_Click(object sender, EventArgs e)
  253. {
  254. base.Visible = false;
  255. Close();
  256. }
  257. }
  258. }