associate the buttons with their respective response values

This commit is contained in:
Michael Becker 2019-11-17 14:46:23 -05:00
parent 2398a9e087
commit 13816f2e07
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -39,6 +39,9 @@ namespace UniversalEditor.UserInterface.Dialogs
cmdOK.Click += cmdOK_Click;
Buttons.Add(cmdOK);
Buttons.Add(new Button(ButtonStockType.Cancel));
Buttons[0].ResponseValue = (int)DialogResult.OK;
Buttons[1].ResponseValue = (int)DialogResult.Cancel;
}
public event EventHandler AboutButtonClicked;