From 63b12ae154c9d436bdb0a0941ab77520ffa9a4ac Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 13 Jul 2010 14:30:02 +0000 Subject: [PATCH] --- PROMS/VEPROMS/PrintMSWord/frmInfo.Designer.cs | 86 ------------ PROMS/VEPROMS/PrintMSWord/frmInfo.cs | 72 ---------- PROMS/VEPROMS/PrintMSWord/frmInfo.resx | 123 ------------------ 3 files changed, 281 deletions(-) delete mode 100644 PROMS/VEPROMS/PrintMSWord/frmInfo.Designer.cs delete mode 100644 PROMS/VEPROMS/PrintMSWord/frmInfo.cs delete mode 100644 PROMS/VEPROMS/PrintMSWord/frmInfo.resx diff --git a/PROMS/VEPROMS/PrintMSWord/frmInfo.Designer.cs b/PROMS/VEPROMS/PrintMSWord/frmInfo.Designer.cs deleted file mode 100644 index 16c3329e..00000000 --- a/PROMS/VEPROMS/PrintMSWord/frmInfo.Designer.cs +++ /dev/null @@ -1,86 +0,0 @@ -namespace PrintMSWord -{ - partial class frmInfo - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.tbInfo = new System.Windows.Forms.TextBox(); - this.statusStrip1 = new System.Windows.Forms.StatusStrip(); - this.tsslStatus = new System.Windows.Forms.ToolStripStatusLabel(); - this.statusStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // tbInfo - // - this.tbInfo.Dock = System.Windows.Forms.DockStyle.Fill; - this.tbInfo.Location = new System.Drawing.Point(0, 0); - this.tbInfo.Multiline = true; - this.tbInfo.Name = "tbInfo"; - this.tbInfo.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.tbInfo.Size = new System.Drawing.Size(670, 344); - this.tbInfo.TabIndex = 0; - // - // statusStrip1 - // - this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.tsslStatus}); - this.statusStrip1.Location = new System.Drawing.Point(0, 344); - this.statusStrip1.Name = "statusStrip1"; - this.statusStrip1.Size = new System.Drawing.Size(670, 22); - this.statusStrip1.TabIndex = 1; - this.statusStrip1.Text = "statusStrip1"; - // - // tsslStatus - // - this.tsslStatus.Name = "tsslStatus"; - this.tsslStatus.Size = new System.Drawing.Size(39, 17); - this.tsslStatus.Text = "Ready"; - // - // frmInfo - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(670, 366); - this.Controls.Add(this.tbInfo); - this.Controls.Add(this.statusStrip1); - this.Name = "frmInfo"; - this.Text = "frmInfo"; - this.Load += new System.EventHandler(this.frmInfo_Load); - this.statusStrip1.ResumeLayout(false); - this.statusStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.TextBox tbInfo; - private System.Windows.Forms.StatusStrip statusStrip1; - private System.Windows.Forms.ToolStripStatusLabel tsslStatus; - } -} \ No newline at end of file diff --git a/PROMS/VEPROMS/PrintMSWord/frmInfo.cs b/PROMS/VEPROMS/PrintMSWord/frmInfo.cs deleted file mode 100644 index 1d3eb37e..00000000 --- a/PROMS/VEPROMS/PrintMSWord/frmInfo.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Text; -using System.Windows.Forms; - -namespace PrintMSWord -{ - public partial class frmInfo : Form - { - private StringBuilder _MyStringBuilder; - public StringBuilder MyStringBuilder - { - get - { - if (_MyStringBuilder == null) - _MyStringBuilder = new StringBuilder(); - return _MyStringBuilder; - } - } - private Form _MyParent; - public frmInfo(Form myParent) - { - _MyParent = myParent; - InitializeComponent(); - } - string _Sep = ""; - public string Sep - { - get { return _Sep; } - set { _Sep = value; } - } - public void Clear() - { - _MyStringBuilder = null; - tbInfo.Text = ""; - Sep = ""; - Hide(); - } - public void AddInfo(string info) - { - tbInfo.Text += Sep + info; - Sep = "\r\n"; - Show(); - } - public void AddInfoPartial(string format, params object[] args) - { - MyStringBuilder.Append(Sep + string.Format(format,args)); - Sep = "\r\n"; - Application.DoEvents(); - if(!Visible)Show(); - } - public string MyStatus - { - get { return tsslStatus.Text; } - set { tsslStatus.Text = value; tbInfo.Text = MyStringBuilder.ToString(); Application.DoEvents(); } - } - public void CopyOutput() - { - Clipboard.Clear(); - Clipboard.SetText(tbInfo.Text); - } - private void frmInfo_Load(object sender, EventArgs e) - { - Rectangle rec = Screen.GetWorkingArea(this); - Top = _MyParent.Top; - Left = _MyParent.Right + Width > rec.Right ? rec.Right - Width : _MyParent.Right; - } - } -} \ No newline at end of file diff --git a/PROMS/VEPROMS/PrintMSWord/frmInfo.resx b/PROMS/VEPROMS/PrintMSWord/frmInfo.resx deleted file mode 100644 index b9c202bf..00000000 --- a/PROMS/VEPROMS/PrintMSWord/frmInfo.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - \ No newline at end of file