Skip to content

Commit

Permalink
replacing grid Link Label with Button
Browse files Browse the repository at this point in the history
  • Loading branch information
ebekker committed Feb 12, 2019
1 parent 815779b commit 50278fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 30 deletions.
31 changes: 8 additions & 23 deletions Zyborg.IAMCreds.WinForm/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions Zyborg.IAMCreds.WinForm/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ public async Task LoadAccessKeys()
x.CreateDate,
_accessKeyLasts[y].LastUsedDate,
ServiceName = SvcReg(_accessKeyLasts[y]),

// Weird bug in MONO version of DataGridViewLinkColumn that doesn't respect
// the `UseColumnTextForLinkValue` property to allow static link text
// TODO: Submit a GH issue for mono
DeleteLinkLabel = "Delete",
}).ToArray();
accessKeysDataGrid.DataSource = _accessKeyDetails;

Expand Down Expand Up @@ -200,7 +195,7 @@ private async void accessKeysDataGrid_CellContentClick(object sender, DataGridVi
return;
}

if (accessKeysDataGrid.Columns[e.ColumnIndex].Name == nameof(deleteLinkColumn))
if (accessKeysDataGrid.Columns[e.ColumnIndex].Name == nameof(deleteButtonColumn))
{
try
{
Expand Down
2 changes: 1 addition & 1 deletion Zyborg.IAMCreds.WinForm/MainForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="deleteButtonColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

0 comments on commit 50278fa

Please sign in to comment.