diff --git a/Rdmp.UI/SimpleDialogs/RedactCatalogueUI.Designer.cs b/Rdmp.UI/SimpleDialogs/RedactCatalogueUI.Designer.cs index a9ae69f090..e0e6b13f89 100644 --- a/Rdmp.UI/SimpleDialogs/RedactCatalogueUI.Designer.cs +++ b/Rdmp.UI/SimpleDialogs/RedactCatalogueUI.Designer.cs @@ -39,6 +39,7 @@ private void InitializeComponent() folvFoundValue = new OLVColumn(); folvReplacmentValue = new OLVColumn(); folvRedactButton = new OLVColumn(); + folvConfiguration = new OLVColumn(); folvColumn = new OLVColumn(); label4 = new System.Windows.Forms.Label(); tbMaxCount = new System.Windows.Forms.TextBox(); @@ -89,8 +90,9 @@ private void InitializeComponent() folv.AllColumns.Add(folvFoundValue); folv.AllColumns.Add(folvReplacmentValue); folv.AllColumns.Add(folvRedactButton); + folv.AllColumns.Add(folvConfiguration); folv.AllColumns.Add(folvColumn); - folv.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { folvColumn,folvFoundValue, folvReplacmentValue, folvRedactButton }); + folv.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { folvColumn, folvFoundValue, folvReplacmentValue, folvRedactButton, folvConfiguration }); folv.Location = new System.Drawing.Point(13, 201); folv.Name = "folv"; folv.ShowGroups = false; @@ -124,10 +126,23 @@ private void InitializeComponent() folvRedactButton.MinimumWidth = 100; folvRedactButton.Text = "Restore"; folvRedactButton.Width = 100; + folvRedactButton.AspectGetter = delegate (object rowObjct) { return "Restore"; }; + // + // folvConfiguration + // + folvConfiguration.AspectGetter = delegate (object rowObject) + { + var redaction = (RegexRedaction)rowObject; + return _activator.RepositoryLocator.CatalogueRepository.GetObjectByID(redaction.RedactionConfiguration_ID).Name; + }; + folvConfiguration.ButtonSizing = OLVColumn.ButtonSizingMode.CellBounds; + folvConfiguration.FillsFreeSpace = true; + folvConfiguration.MinimumWidth = 100; + folvConfiguration.Text = "Configuration"; + folvConfiguration.Width = 100; // // folvColumn // - //folvColumn.AspectName = "Column"; folvColumn.AspectGetter = delegate (object rowObject) { var redaction = (RegexRedaction)rowObject; @@ -257,6 +272,7 @@ private void InitializeComponent() private OLVColumn folvReplacmentValue; private OLVColumn folvRedactButton; private OLVColumn folvColumn; + private OLVColumn folvConfiguration; private System.Windows.Forms.Button btnNewRegex; private System.Windows.Forms.Button btnRestoreAll; } diff --git a/Rdmp.UI/SimpleDialogs/SelectDialog`1.resx b/Rdmp.UI/SimpleDialogs/SelectDialog`1.resx new file mode 100644 index 0000000000..6252b1ef07 --- /dev/null +++ b/Rdmp.UI/SimpleDialogs/SelectDialog`1.resx @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + \ No newline at end of file