From e9e380dbe6852d48523c618d96748e016eddcd2b Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Mon, 24 Aug 2020 14:16:20 -0400 Subject: [PATCH] Account management UI, add 'original' column --- .../UNTESTED/Dialogs/AccountsDialog.Designer.cs | 12 ++++++++++++ .../UNTESTED/Dialogs/AccountsDialog.resx | 3 +++ WinFormsDesigner/Dialogs/AccountsDialog.Designer.cs | 12 ++++++++++++ WinFormsDesigner/Dialogs/AccountsDialog.resx | 3 +++ 4 files changed, 30 insertions(+) diff --git a/LibationWinForms/UNTESTED/Dialogs/AccountsDialog.Designer.cs b/LibationWinForms/UNTESTED/Dialogs/AccountsDialog.Designer.cs index 744ef2b8..7a5efd71 100644 --- a/LibationWinForms/UNTESTED/Dialogs/AccountsDialog.Designer.cs +++ b/LibationWinForms/UNTESTED/Dialogs/AccountsDialog.Designer.cs @@ -31,6 +31,7 @@ this.cancelBtn = new System.Windows.Forms.Button(); this.saveBtn = new System.Windows.Forms.Button(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.Original = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.DeleteAccount = new System.Windows.Forms.DataGridViewButtonColumn(); this.LibraryScan = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.AccountId = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -70,6 +71,7 @@ this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.Original, this.DeleteAccount, this.LibraryScan, this.AccountId, @@ -87,6 +89,15 @@ this.dataGridView1.RowsAdded += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.dataGridView1_RowsAdded); this.dataGridView1.RowsRemoved += new System.Windows.Forms.DataGridViewRowsRemovedEventHandler(this.dataGridView1_RowsRemoved); // + // Original + // + this.Original.HeaderText = "Original"; + this.Original.Name = "Original"; + this.Original.ReadOnly = true; + this.Original.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.Original.Visible = false; + this.Original.Width = 48; + // // DeleteAccount // this.DeleteAccount.HeaderText = "Delete"; @@ -141,6 +152,7 @@ private System.Windows.Forms.Button cancelBtn; private System.Windows.Forms.Button saveBtn; private System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.DataGridViewTextBoxColumn Original; private System.Windows.Forms.DataGridViewButtonColumn DeleteAccount; private System.Windows.Forms.DataGridViewCheckBoxColumn LibraryScan; private System.Windows.Forms.DataGridViewTextBoxColumn AccountId; diff --git a/LibationWinForms/UNTESTED/Dialogs/AccountsDialog.resx b/LibationWinForms/UNTESTED/Dialogs/AccountsDialog.resx index 2581fa05..18b23138 100644 --- a/LibationWinForms/UNTESTED/Dialogs/AccountsDialog.resx +++ b/LibationWinForms/UNTESTED/Dialogs/AccountsDialog.resx @@ -117,6 +117,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + True + True diff --git a/WinFormsDesigner/Dialogs/AccountsDialog.Designer.cs b/WinFormsDesigner/Dialogs/AccountsDialog.Designer.cs index 80ed5658..a677c76b 100644 --- a/WinFormsDesigner/Dialogs/AccountsDialog.Designer.cs +++ b/WinFormsDesigner/Dialogs/AccountsDialog.Designer.cs @@ -31,6 +31,7 @@ this.cancelBtn = new System.Windows.Forms.Button(); this.saveBtn = new System.Windows.Forms.Button(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.Original = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.DeleteAccount = new System.Windows.Forms.DataGridViewButtonColumn(); this.LibraryScan = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.AccountId = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -68,6 +69,7 @@ this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.Original, this.DeleteAccount, this.LibraryScan, this.AccountId, @@ -79,6 +81,15 @@ this.dataGridView1.Size = new System.Drawing.Size(776, 397); this.dataGridView1.TabIndex = 0; // + // Original + // + this.Original.HeaderText = "Original"; + this.Original.Name = "Original"; + this.Original.ReadOnly = true; + this.Original.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.Original.Visible = false; + this.Original.Width = 48; + // // DeleteAccount // this.DeleteAccount.HeaderText = "Delete"; @@ -133,6 +144,7 @@ private System.Windows.Forms.Button cancelBtn; private System.Windows.Forms.Button saveBtn; private System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.DataGridViewTextBoxColumn Original; private System.Windows.Forms.DataGridViewButtonColumn DeleteAccount; private System.Windows.Forms.DataGridViewCheckBoxColumn LibraryScan; private System.Windows.Forms.DataGridViewTextBoxColumn AccountId; diff --git a/WinFormsDesigner/Dialogs/AccountsDialog.resx b/WinFormsDesigner/Dialogs/AccountsDialog.resx index 2581fa05..18b23138 100644 --- a/WinFormsDesigner/Dialogs/AccountsDialog.resx +++ b/WinFormsDesigner/Dialogs/AccountsDialog.resx @@ -117,6 +117,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + True + True