Show / Hide Table of Contents

Class OKCancelDialog

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

Inheritance
Object
OKCancelDialog
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
Button

buttonOK

Declaration
protected Button buttonOK
Field Value
Type Description
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()

Extension Methods

UpdateUtils.To<TIn, TOut>(TIn, Func<TIn, TOut>)
JsonStorage.SaveJson<T>(T, Stream)
JsonStorage.SaveJson<T>(T, String)
JsonStorage.ToJsonString<T>(T)
JsonStorage.ReparseAsJson<T>(Object)
JsonStorage.ReparseAsJson<T>(Object, T)
XmlStorage.SaveXml(Object, Stream, String)
XmlStorage.SaveXml<T>(T, String, String)
XmlStorage.ToXmlString(Object, String)
ConversionUtils.ConvertToString<TType>(TType)
In This Article
Back to top Copyright Bastian Eicher