C# Class Orchestra.Windows.SimpleDataWindow

Inheritance: MahApps.Metro.Controls.Dialogs.CustomDialog, IDataWindow
Mostra file Open project: WildGums/Orchestra

Public Methods

Method Description
Close ( ) : void
OnApplyTemplate ( ) : void

Protected Methods

Method Description
AddCustomButton ( DataWindowButton dataWindowButton ) : void

Adds a custom button to the list of buttons.

ApplyChangesAsync ( ) : Task

Applies all changes made by this window.

DiscardChangesAsync ( ) : Task

Discards all changes made by this window.

ExecuteApply ( ) : void

Executes the Apply command.

ExecuteCancelAsync ( ) : System.Threading.Tasks.Task

Executes the Cancel command.

ExecuteClose ( ) : void

Executes the Close command.

ExecuteOkAsync ( ) : System.Threading.Tasks.Task

Executes the Ok command.

OnApplyCanExecute ( ) : bool

Determines whether the user can execute the Apply command.

OnApplyExecute ( ) : void

Handled when the user invokes the Apply command.

OnCancelCanExecute ( ) : bool

Determines whether the user can execute the Cancel command.

OnCancelExecuteAsync ( ) : System.Threading.Tasks.Task

Handled when the user invokes the Cancel command.

OnCloseExecute ( ) : void

Handled when the user invokes the Close command.

OnOkCanExecute ( ) : bool

Determines whether the user can execute the Ok command.

OnOkExecuteAsync ( ) : System.Threading.Tasks.Task

Handled when the user invokes the Ok command.

SimpleDataWindow ( ) : System

Initializes a new instance of the SimpleDataWindow class.

SimpleDataWindow ( DataWindowMode dataWindowMode ) : System

Initializes a new instance of the SimpleDataWindow class.

SimpleDataWindow ( IViewModel viewModel, DataWindowMode mode = DataWindowMode.OkCancel, IEnumerable additionalButtons = null ) : System

Initializes a new instance of the SimpleDataWindow class.

ValidateData ( ) : bool

Validates the data.

Private Methods

Method Description
OnViewModelChanged ( ) : void
ViewModelClosedAsync ( object sender, Catel.MVVM.ViewModelClosedEventArgs e ) : System.Threading.Tasks.Task

Method Details

AddCustomButton() protected method

Adds a custom button to the list of buttons.
The is added when the window is already loaded.
protected AddCustomButton ( DataWindowButton dataWindowButton ) : void
dataWindowButton Catel.Windows.DataWindowButton The data window button.
return void

ApplyChangesAsync() protected method

Applies all changes made by this window.
protected ApplyChangesAsync ( ) : Task
return Task

Close() public method

public Close ( ) : void
return void

DiscardChangesAsync() protected method

Discards all changes made by this window.
protected DiscardChangesAsync ( ) : Task
return Task

ExecuteApply() protected method

Executes the Apply command.
protected ExecuteApply ( ) : void
return void

ExecuteCancelAsync() protected method

Executes the Cancel command.
protected ExecuteCancelAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

ExecuteClose() protected method

Executes the Close command.
protected ExecuteClose ( ) : void
return void

ExecuteOkAsync() protected method

Executes the Ok command.
protected ExecuteOkAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnApplyCanExecute() protected method

Determines whether the user can execute the Apply command.
protected OnApplyCanExecute ( ) : bool
return bool

OnApplyExecute() protected method

Handled when the user invokes the Apply command.
protected OnApplyExecute ( ) : void
return void

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnCancelCanExecute() protected method

Determines whether the user can execute the Cancel command.
protected OnCancelCanExecute ( ) : bool
return bool

OnCancelExecuteAsync() protected method

Handled when the user invokes the Cancel command.
protected OnCancelExecuteAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnCloseExecute() protected method

Handled when the user invokes the Close command.
protected OnCloseExecute ( ) : void
return void

OnOkCanExecute() protected method

Determines whether the user can execute the Ok command.
protected OnOkCanExecute ( ) : bool
return bool

OnOkExecuteAsync() protected method

Handled when the user invokes the Ok command.
protected OnOkExecuteAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SimpleDataWindow() protected method

Initializes a new instance of the SimpleDataWindow class.
protected SimpleDataWindow ( ) : System
return System

SimpleDataWindow() protected method

Initializes a new instance of the SimpleDataWindow class.
protected SimpleDataWindow ( DataWindowMode dataWindowMode ) : System
dataWindowMode DataWindowMode
return System

SimpleDataWindow() protected method

Initializes a new instance of the SimpleDataWindow class.
protected SimpleDataWindow ( IViewModel viewModel, DataWindowMode mode = DataWindowMode.OkCancel, IEnumerable additionalButtons = null ) : System
viewModel IViewModel The view model.
mode DataWindowMode The data window mode.
additionalButtons IEnumerable The additional buttons.
return System

ValidateData() protected method

Validates the data.
protected ValidateData ( ) : bool
return bool