diff --git a/CobXmlSupport/CheckWorkItems.Designer.cs b/CobXmlSupport/CheckWorkItems.Designer.cs index 9c29048..7383b3e 100644 --- a/CobXmlSupport/CheckWorkItems.Designer.cs +++ b/CobXmlSupport/CheckWorkItems.Designer.cs @@ -30,11 +30,11 @@ { this.lbWorkFiles = new System.Windows.Forms.ListBox(); this.lvGenFiles = new System.Windows.Forms.ListView(); - this.btnClose = new System.Windows.Forms.Button(); this.chUsageName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chDate = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chFileName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chPath = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.btnClose = new System.Windows.Forms.Button(); this.SuspendLayout(); // // lbWorkFiles @@ -42,26 +42,48 @@ this.lbWorkFiles.FormattingEnabled = true; this.lbWorkFiles.Location = new System.Drawing.Point(13, 13); this.lbWorkFiles.Name = "lbWorkFiles"; - this.lbWorkFiles.Size = new System.Drawing.Size(248, 355); + this.lbWorkFiles.Size = new System.Drawing.Size(198, 355); this.lbWorkFiles.TabIndex = 0; this.lbWorkFiles.SelectedIndexChanged += new System.EventHandler(this.lbWorkFiles_SelectedIndexChanged); // // lvGenFiles // + this.lvGenFiles.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lvGenFiles.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.chUsageName, this.chDate, this.chFileName, this.chPath}); - this.lvGenFiles.Location = new System.Drawing.Point(268, 13); + this.lvGenFiles.Location = new System.Drawing.Point(209, 13); this.lvGenFiles.Name = "lvGenFiles"; - this.lvGenFiles.Size = new System.Drawing.Size(462, 355); + this.lvGenFiles.Size = new System.Drawing.Size(568, 355); this.lvGenFiles.TabIndex = 1; this.lvGenFiles.UseCompatibleStateImageBehavior = false; + this.lvGenFiles.View = System.Windows.Forms.View.Details; + // + // chUsageName + // + this.chUsageName.Text = "CopyNamn"; + this.chUsageName.Width = 160; + // + // chDate + // + this.chDate.Text = "Datum"; + this.chDate.Width = 90; + // + // chFileName + // + this.chFileName.Text = "Filnamn"; + this.chFileName.Width = 160; + // + // chPath + // + this.chPath.Text = "Filpath"; + this.chPath.Width = 160; // // btnClose // - this.btnClose.Location = new System.Drawing.Point(654, 388); + this.btnClose.Location = new System.Drawing.Point(706, 374); this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(75, 23); this.btnClose.TabIndex = 2; @@ -69,27 +91,11 @@ this.btnClose.UseVisualStyleBackColor = true; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // - // chUsageName - // - this.chUsageName.Text = "CopyNamn"; - // - // chDate - // - this.chDate.Text = "Datum"; - // - // chFileName - // - this.chFileName.Text = "Filnamn"; - // - // chPath - // - this.chPath.Text = "Filpath"; - // // CheckWorkItems // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(742, 423); + this.ClientSize = new System.Drawing.Size(789, 408); this.Controls.Add(this.btnClose); this.Controls.Add(this.lvGenFiles); this.Controls.Add(this.lbWorkFiles); diff --git a/CobXmlSupport/CheckWorkItems.cs b/CobXmlSupport/CheckWorkItems.cs index f8f916d..3ecb399 100644 --- a/CobXmlSupport/CheckWorkItems.cs +++ b/CobXmlSupport/CheckWorkItems.cs @@ -33,7 +33,19 @@ namespace CobXmlSupport private void lbWorkFiles_SelectedIndexChanged(object sender, EventArgs e) { - + string fnameChosen =(string)lbWorkFiles.Items[lbWorkFiles.SelectedIndex]; + GenSetting lSetting; + FileList.TryGetValue(fnameChosen, out lSetting); + lvGenFiles.Items.Clear(); + foreach(savedFile sf in lSetting.fileList) + { + ListViewItem lvi = new ListViewItem( ); + lvi.Text = sf.usageName; + lvi.SubItems.Add(sf.saveDate.ToLocalTime().ToString()); + lvi.SubItems.Add(sf.fNameSaved); + lvi.SubItems.Add(sf.directorySaved); + lvGenFiles.Items.Add(lvi); + } }