associate the buttons with their respective response values
This commit is contained in:
parent
2398a9e087
commit
13816f2e07
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user