Added Error Handling and Reporting

This commit is contained in:
Rich
2009-11-04 17:15:29 +00:00
parent cd04644e2f
commit f26cc50c3c
13 changed files with 265 additions and 86 deletions

View File

@@ -30,6 +30,7 @@ namespace DataLoader
private void InitializeComponent()
{
this.sc = new System.Windows.Forms.SplitContainer();
this.cbFormatsOnly = new System.Windows.Forms.CheckBox();
this.btnBrowseVeProms = new System.Windows.Forms.Button();
this.tbVePromsPath = new System.Windows.Forms.TextBox();
this.btnCtTok = new System.Windows.Forms.Button();
@@ -59,7 +60,7 @@ namespace DataLoader
this.fbd = new System.Windows.Forms.FolderBrowserDialog();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
this.cbFormatsOnly = new System.Windows.Forms.CheckBox();
this.tsslError = new System.Windows.Forms.ToolStripStatusLabel();
this.sc.Panel1.SuspendLayout();
this.sc.Panel2.SuspendLayout();
this.sc.SuspendLayout();
@@ -70,7 +71,7 @@ namespace DataLoader
//
this.sc.Dock = System.Windows.Forms.DockStyle.Fill;
this.sc.Location = new System.Drawing.Point(0, 0);
this.sc.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.sc.Margin = new System.Windows.Forms.Padding(2);
this.sc.Name = "sc";
this.sc.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
@@ -111,10 +112,21 @@ namespace DataLoader
this.sc.SplitterWidth = 3;
this.sc.TabIndex = 46;
//
// cbFormatsOnly
//
this.cbFormatsOnly.AutoSize = true;
this.cbFormatsOnly.Location = new System.Drawing.Point(477, 195);
this.cbFormatsOnly.Margin = new System.Windows.Forms.Padding(2);
this.cbFormatsOnly.Name = "cbFormatsOnly";
this.cbFormatsOnly.Size = new System.Drawing.Size(87, 17);
this.cbFormatsOnly.TabIndex = 73;
this.cbFormatsOnly.Text = "Formats Only";
this.cbFormatsOnly.UseVisualStyleBackColor = true;
//
// btnBrowseVeProms
//
this.btnBrowseVeProms.Location = new System.Drawing.Point(478, 29);
this.btnBrowseVeProms.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnBrowseVeProms.Margin = new System.Windows.Forms.Padding(2);
this.btnBrowseVeProms.Name = "btnBrowseVeProms";
this.btnBrowseVeProms.Size = new System.Drawing.Size(119, 19);
this.btnBrowseVeProms.TabIndex = 72;
@@ -125,7 +137,7 @@ namespace DataLoader
// tbVePromsPath
//
this.tbVePromsPath.Location = new System.Drawing.Point(2, 29);
this.tbVePromsPath.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.tbVePromsPath.Margin = new System.Windows.Forms.Padding(2);
this.tbVePromsPath.Name = "tbVePromsPath";
this.tbVePromsPath.Size = new System.Drawing.Size(464, 20);
this.tbVePromsPath.TabIndex = 71;
@@ -163,7 +175,7 @@ namespace DataLoader
// btnBrowseVesam
//
this.btnBrowseVesam.Location = new System.Drawing.Point(478, 58);
this.btnBrowseVesam.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnBrowseVesam.Margin = new System.Windows.Forms.Padding(2);
this.btnBrowseVesam.Name = "btnBrowseVesam";
this.btnBrowseVesam.Size = new System.Drawing.Size(119, 19);
this.btnBrowseVesam.TabIndex = 67;
@@ -205,7 +217,7 @@ namespace DataLoader
this.cbLazy.Checked = true;
this.cbLazy.CheckState = System.Windows.Forms.CheckState.Checked;
this.cbLazy.Location = new System.Drawing.Point(477, 174);
this.cbLazy.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbLazy.Margin = new System.Windows.Forms.Padding(2);
this.cbLazy.Name = "cbLazy";
this.cbLazy.Size = new System.Drawing.Size(75, 17);
this.cbLazy.TabIndex = 63;
@@ -215,7 +227,7 @@ namespace DataLoader
// btnConvertSelected
//
this.btnConvertSelected.Location = new System.Drawing.Point(2, 197);
this.btnConvertSelected.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnConvertSelected.Margin = new System.Windows.Forms.Padding(2);
this.btnConvertSelected.Name = "btnConvertSelected";
this.btnConvertSelected.Size = new System.Drawing.Size(160, 19);
this.btnConvertSelected.TabIndex = 62;
@@ -226,7 +238,7 @@ namespace DataLoader
// btnLoadTreeDB
//
this.btnLoadTreeDB.Location = new System.Drawing.Point(0, 0);
this.btnLoadTreeDB.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnLoadTreeDB.Margin = new System.Windows.Forms.Padding(2);
this.btnLoadTreeDB.Name = "btnLoadTreeDB";
this.btnLoadTreeDB.Size = new System.Drawing.Size(118, 19);
this.btnLoadTreeDB.TabIndex = 60;
@@ -240,7 +252,7 @@ namespace DataLoader
this.cbPurgeData.Checked = true;
this.cbPurgeData.CheckState = System.Windows.Forms.CheckState.Checked;
this.cbPurgeData.Location = new System.Drawing.Point(477, 153);
this.cbPurgeData.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbPurgeData.Margin = new System.Windows.Forms.Padding(2);
this.cbPurgeData.Name = "cbPurgeData";
this.cbPurgeData.Size = new System.Drawing.Size(119, 17);
this.cbPurgeData.TabIndex = 59;
@@ -259,7 +271,7 @@ namespace DataLoader
// pbStep
//
this.pbStep.Location = new System.Drawing.Point(159, 150);
this.pbStep.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.pbStep.Margin = new System.Windows.Forms.Padding(2);
this.pbStep.Name = "pbStep";
this.pbStep.Size = new System.Drawing.Size(308, 15);
this.pbStep.TabIndex = 57;
@@ -267,7 +279,7 @@ namespace DataLoader
// pbSect
//
this.pbSect.Location = new System.Drawing.Point(159, 131);
this.pbSect.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.pbSect.Margin = new System.Windows.Forms.Padding(2);
this.pbSect.Name = "pbSect";
this.pbSect.Size = new System.Drawing.Size(307, 15);
this.pbSect.TabIndex = 56;
@@ -275,7 +287,7 @@ namespace DataLoader
// pbProc
//
this.pbProc.Location = new System.Drawing.Point(159, 111);
this.pbProc.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.pbProc.Margin = new System.Windows.Forms.Padding(2);
this.pbProc.Name = "pbProc";
this.pbProc.Size = new System.Drawing.Size(308, 15);
this.pbProc.TabIndex = 55;
@@ -286,7 +298,7 @@ namespace DataLoader
this.cbSaveDoc.Checked = true;
this.cbSaveDoc.CheckState = System.Windows.Forms.CheckState.Checked;
this.cbSaveDoc.Location = new System.Drawing.Point(478, 111);
this.cbSaveDoc.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbSaveDoc.Margin = new System.Windows.Forms.Padding(2);
this.cbSaveDoc.Name = "cbSaveDoc";
this.cbSaveDoc.Size = new System.Drawing.Size(77, 17);
this.cbSaveDoc.TabIndex = 54;
@@ -298,7 +310,7 @@ namespace DataLoader
//
this.cbSaveRTF.AutoSize = true;
this.cbSaveRTF.Location = new System.Drawing.Point(478, 132);
this.cbSaveRTF.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbSaveRTF.Margin = new System.Windows.Forms.Padding(2);
this.cbSaveRTF.Name = "cbSaveRTF";
this.cbSaveRTF.Size = new System.Drawing.Size(75, 17);
this.cbSaveRTF.TabIndex = 53;
@@ -309,7 +321,7 @@ namespace DataLoader
// btnBrowse
//
this.btnBrowse.Location = new System.Drawing.Point(478, 84);
this.btnBrowse.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnBrowse.Margin = new System.Windows.Forms.Padding(2);
this.btnBrowse.Name = "btnBrowse";
this.btnBrowse.Size = new System.Drawing.Size(56, 19);
this.btnBrowse.TabIndex = 52;
@@ -320,7 +332,7 @@ namespace DataLoader
// tbSource
//
this.tbSource.Location = new System.Drawing.Point(70, 84);
this.tbSource.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.tbSource.Margin = new System.Windows.Forms.Padding(2);
this.tbSource.Name = "tbSource";
this.tbSource.Size = new System.Drawing.Size(397, 20);
this.tbSource.TabIndex = 51;
@@ -357,7 +369,7 @@ namespace DataLoader
// btnConvert
//
this.btnConvert.Location = new System.Drawing.Point(2, 85);
this.btnConvert.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnConvert.Margin = new System.Windows.Forms.Padding(2);
this.btnConvert.Name = "btnConvert";
this.btnConvert.Size = new System.Drawing.Size(56, 40);
this.btnConvert.TabIndex = 46;
@@ -369,7 +381,7 @@ namespace DataLoader
this.tv.CheckBoxes = true;
this.tv.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tv.Location = new System.Drawing.Point(0, 7);
this.tv.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.tv.Margin = new System.Windows.Forms.Padding(2);
this.tv.Name = "tv";
this.tv.Size = new System.Drawing.Size(622, 210);
this.tv.TabIndex = 24;
@@ -379,29 +391,30 @@ namespace DataLoader
// statusStrip1
//
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripStatusLabel1});
this.statusStrip1.Location = new System.Drawing.Point(0, 418);
this.toolStripStatusLabel1,
this.tsslError});
this.statusStrip1.Location = new System.Drawing.Point(0, 400);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(622, 22);
this.statusStrip1.Size = new System.Drawing.Size(622, 40);
this.statusStrip1.TabIndex = 47;
this.statusStrip1.Text = "statusStrip1";
//
// toolStripStatusLabel1
//
this.toolStripStatusLabel1.AutoSize = false;
this.toolStripStatusLabel1.ImageAlign = System.Drawing.ContentAlignment.TopLeft;
this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
this.toolStripStatusLabel1.Size = new System.Drawing.Size(105, 17);
this.toolStripStatusLabel1.Size = new System.Drawing.Size(300, 35);
this.toolStripStatusLabel1.Text = "Status Information";
this.toolStripStatusLabel1.TextAlign = System.Drawing.ContentAlignment.TopLeft;
//
// cbFormatsOnly
// tsslError
//
this.cbFormatsOnly.AutoSize = true;
this.cbFormatsOnly.Location = new System.Drawing.Point(477, 195);
this.cbFormatsOnly.Margin = new System.Windows.Forms.Padding(2);
this.cbFormatsOnly.Name = "cbFormatsOnly";
this.cbFormatsOnly.Size = new System.Drawing.Size(87, 17);
this.cbFormatsOnly.TabIndex = 73;
this.cbFormatsOnly.Text = "Formats Only";
this.cbFormatsOnly.UseVisualStyleBackColor = true;
this.tsslError.AutoSize = false;
this.tsslError.Name = "tsslError";
this.tsslError.Size = new System.Drawing.Size(300, 35);
this.tsslError.Text = "No Errors";
this.tsslError.TextAlign = System.Drawing.ContentAlignment.TopLeft;
//
// frmLoader
//
@@ -410,9 +423,9 @@ namespace DataLoader
this.ClientSize = new System.Drawing.Size(622, 440);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.sc);
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "frmLoader";
this.Text = "frmLoader";
this.Text = "PROMS-2010 Data Loader";
this.Load += new System.EventHandler(this.frmLoader_Load);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmLoader_FormClosing);
this.sc.Panel1.ResumeLayout(false);
@@ -459,5 +472,6 @@ namespace DataLoader
private System.Windows.Forms.Button btnBrowseVeProms;
private System.Windows.Forms.TextBox tbVePromsPath;
private System.Windows.Forms.CheckBox cbFormatsOnly;
private System.Windows.Forms.ToolStripStatusLabel tsslError;
}
}