Table of Contents

Class OKCancelDialog

Namespace
NanoByte.Common.Controls
Assembly
NanoByte.Common.WinForms.dll

A base-class for creating fixed-size dialog boxes with an OK and a Cancel button.

public class OKCancelDialog : Form
Inheritance
object
MarshalByRefObject
Component
Control
ScrollableControl
ContainerControl
Form
OKCancelDialog
Extension Methods

Constructors

OKCancelDialog()

public OKCancelDialog()

Fields

buttonCancel

protected Button buttonCancel

Field Value

Button

buttonOK

protected Button buttonOK

Field Value

Button

Methods

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true if managed resources should be disposed; otherwise, false.

OnCancelClicked()

This hook is called when the user clicks the Cancel button.

protected virtual void OnCancelClicked()

OnOKClicked()

This hook is called when the user clicks the OK button.

protected virtual void OnOKClicked()