C# Class Guit.DialogBox

Simple Dialog window containing default Accept and Cancel buttons that can be customized.
Inheritance: Dialog, ISupportInitializeNotification
ファイルを表示 Open project: kzu/guit

Public Methods

Method Description
Add ( control, string propertyNameBinding, object>?.Func convertTo = null, object>?.Func convertFrom = null ) : T
Bind ( control, string propertyName, object>?.Func convertTo = null, object>?.Func convertFrom = null ) : T
DialogBox ( string title ) : System
LayoutSubviews ( ) : void
ProcessKey ( KeyEvent kb ) : bool
ShowDialog ( ) : bool?
WillPresent ( ) : void

Protected Methods

Method Description
AddButton ( string text, Action clickedAction, bool isDefault = false ) : void
BeginInit ( ) : void

Begins the initialization of the dialog prior to display for the first time.

Close ( bool? result ) : void
EndInit ( ) : void

Finishes the initialization of the dialog prior to display for the first time. Sets the IsInitialized and raises Initialized.

Private Methods

Method Description
ISupportInitialize ( ) : void

Method Details

Add() public method

public Add ( control, string propertyNameBinding, object>?.Func convertTo = null, object>?.Func convertFrom = null ) : T
propertyNameBinding string
convertTo object>?.Func
convertFrom object>?.Func
return T

AddButton() protected method

protected AddButton ( string text, Action clickedAction, bool isDefault = false ) : void
text string
clickedAction Action
isDefault bool
return void

BeginInit() protected method

Begins the initialization of the dialog prior to display for the first time.
protected BeginInit ( ) : void
return void

Bind() public method

public Bind ( control, string propertyName, object>?.Func convertTo = null, object>?.Func convertFrom = null ) : T
propertyName string
convertTo object>?.Func
convertFrom object>?.Func
return T

Close() protected method

protected Close ( bool? result ) : void
result bool?
return void

DialogBox() public method

public DialogBox ( string title ) : System
title string
return System

EndInit() protected method

Finishes the initialization of the dialog prior to display for the first time. Sets the IsInitialized and raises Initialized.
protected EndInit ( ) : void
return void

LayoutSubviews() public method

public LayoutSubviews ( ) : void
return void

ProcessKey() public method

public ProcessKey ( KeyEvent kb ) : bool
kb KeyEvent
return bool

ShowDialog() public method

public ShowDialog ( ) : bool?
return bool?

WillPresent() public method

public WillPresent ( ) : void
return void