| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- using System;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.Runtime.CompilerServices;
- using System.Windows.Forms;
- using ExportExcel.Properties;
- using Microsoft.VisualBasic.CompilerServices;
- namespace Dongke.IBOSS.PRD.Framework.Controls
- {
- [DesignerGenerated]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class progressexcel : Form
- {
- private IContainer components;
- [AccessedThroughProperty("Label1")]
- private Label _Label1;
- [AccessedThroughProperty("Button1")]
- private Button _Button1;
- [AccessedThroughProperty("ToolTip1")]
- private ToolTip _ToolTip1;
- [AccessedThroughProperty("Panel1")]
- private Panel _Panel1;
- [AccessedThroughProperty("Panel2")]
- private Panel _Panel2;
- [AccessedThroughProperty("ProgressBar1")]
- private ProgressBar _ProgressBar1;
- 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 Panel1
- {
- get
- {
- return _Panel1;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- _Panel1 = value;
- }
- }
- internal virtual Panel Panel2
- {
- get
- {
- return _Panel2;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- _Panel2 = value;
- }
- }
- internal virtual ProgressBar ProgressBar1
- {
- get
- {
- return _ProgressBar1;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- _ProgressBar1 = value;
- }
- }
- public progressexcel()
- {
- base.Load += progressexcel_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.Button1 = new System.Windows.Forms.Button();
- this.ToolTip1 = new System.Windows.Forms.ToolTip(this.components);
- this.Panel1 = new System.Windows.Forms.Panel();
- this.Panel2 = new System.Windows.Forms.Panel();
- this.ProgressBar1 = new System.Windows.Forms.ProgressBar();
- this.Panel1.SuspendLayout();
- this.Panel2.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;
- this.Label1.Name = "Label1";
- System.Windows.Forms.Control label2 = this.Label1;
- System.Drawing.Size size = new System.Drawing.Size(242, 54);
- label2.Size = size;
- this.Label1.TabIndex = 0;
- this.Label1.Text = "正在处理中,请稍候...";
- this.Label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
- this.Button1.BackColor = System.Drawing.SystemColors.Control;
- //this.Button1.Image = ExportExcel.Properties.Resources.delete;
- this.Button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- System.Windows.Forms.Control button = this.Button1;
- location = new System.Drawing.Point(75, 7);
- button.Location = location;
- this.Button1.Name = "Button1";
- System.Windows.Forms.Control button2 = this.Button1;
- size = new System.Drawing.Size(83, 31);
- button2.Size = size;
- this.Button1.TabIndex = 1;
- this.Button1.Text = "取消导出";
- this.ToolTip1.SetToolTip(this.Button1, "关于进度窗口,立即取消导出");
- this.Button1.UseVisualStyleBackColor = false;
- this.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.Panel1.Controls.Add(this.ProgressBar1);
- this.Panel1.Controls.Add(this.Label1);
- this.Panel1.Dock = System.Windows.Forms.DockStyle.Top;
- System.Windows.Forms.Control panel = this.Panel1;
- location = new System.Drawing.Point(0, 0);
- panel.Location = location;
- this.Panel1.Name = "Panel1";
- System.Windows.Forms.Control panel2 = this.Panel1;
- size = new System.Drawing.Size(244, 56);
- panel2.Size = size;
- this.Panel1.TabIndex = 2;
- this.Panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.Panel2.Controls.Add(this.Button1);
- this.Panel2.Dock = System.Windows.Forms.DockStyle.Fill;
- System.Windows.Forms.Control panel3 = this.Panel2;
- location = new System.Drawing.Point(0, 56);
- panel3.Location = location;
- this.Panel2.Name = "Panel2";
- System.Windows.Forms.Control panel4 = this.Panel2;
- size = new System.Drawing.Size(244, 41);
- panel4.Size = size;
- this.Panel2.TabIndex = 3;
- System.Windows.Forms.Control progressBar = this.ProgressBar1;
- location = new System.Drawing.Point(-1, 34);
- progressBar.Location = location;
- this.ProgressBar1.Name = "ProgressBar1";
- System.Windows.Forms.Control progressBar2 = this.ProgressBar1;
- size = new System.Drawing.Size(244, 23);
- progressBar2.Size = size;
- this.ProgressBar1.Step = 1;
- this.ProgressBar1.TabIndex = 1;
- 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(244, 97);
- base.ClientSize = size;
- base.Controls.Add(this.Panel2);
- base.Controls.Add(this.Panel1);
- base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- base.MaximizeBox = false;
- base.MinimizeBox = false;
- base.Name = "progressexcel";
- base.ShowIcon = false;
- base.ShowInTaskbar = false;
- base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "导出数据为Excel文件";
- this.Panel1.ResumeLayout(false);
- this.Panel2.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_CancelExportDGVToExcel = true;
- Close();
- }
- private void progressexcel_Load(object sender, EventArgs e)
- {
- Button1.Visible = true;
- }
- }
- }
|