Class OKCancelDialog
A base-class for creating fixed-size dialog boxes with an OK and a Cancel button.
Namespace: NanoByte.Common.Controls
Assembly: NanoByte.Common.WinForms.dll
Syntax
public class OKCancelDialog : Form
Constructors
OKCancelDialog()
Declaration
public OKCancelDialog()
Fields
buttonCancel
Declaration
protected Button buttonCancel
Field Value
Type | Description |
---|---|
System.Windows.Forms.Button |
buttonOK
Declaration
protected Button buttonOK
Field Value
Type | Description |
---|---|
System.Windows.Forms.Button |
Methods
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true if managed resources should be disposed; otherwise, false. |
OnCancelClicked()
This hook is called when the user clicks the Cancel button.
Declaration
protected virtual void OnCancelClicked()
OnOKClicked()
This hook is called when the user clicks the OK button.
Declaration
protected virtual void OnOKClicked()