C# Класс Orchestra.Windows.SimpleDataWindow

Наследование: MahApps.Metro.Controls.Dialogs.CustomDialog, IDataWindow
Показать файл Открыть проект

Открытые методы

Метод Описание
Close ( ) : void
OnApplyTemplate ( ) : void

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
OnViewModelChanged ( ) : void
ViewModelClosedAsync ( object sender, Catel.MVVM.ViewModelClosedEventArgs e ) : System.Threading.Tasks.Task

Описание методов

AddCustomButton() защищенный Метод

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.
Результат void

ApplyChangesAsync() защищенный Метод

Applies all changes made by this window.
protected ApplyChangesAsync ( ) : Task
Результат Task

Close() публичный Метод

public Close ( ) : void
Результат void

DiscardChangesAsync() защищенный Метод

Discards all changes made by this window.
protected DiscardChangesAsync ( ) : Task
Результат Task

ExecuteApply() защищенный Метод

Executes the Apply command.
protected ExecuteApply ( ) : void
Результат void

ExecuteCancelAsync() защищенный Метод

Executes the Cancel command.
protected ExecuteCancelAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

ExecuteClose() защищенный Метод

Executes the Close command.
protected ExecuteClose ( ) : void
Результат void

ExecuteOkAsync() защищенный Метод

Executes the Ok command.
protected ExecuteOkAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

OnApplyCanExecute() защищенный Метод

Determines whether the user can execute the Apply command.
protected OnApplyCanExecute ( ) : bool
Результат bool

OnApplyExecute() защищенный Метод

Handled when the user invokes the Apply command.
protected OnApplyExecute ( ) : void
Результат void

OnApplyTemplate() публичный Метод

public OnApplyTemplate ( ) : void
Результат void

OnCancelCanExecute() защищенный Метод

Determines whether the user can execute the Cancel command.
protected OnCancelCanExecute ( ) : bool
Результат bool

OnCancelExecuteAsync() защищенный Метод

Handled when the user invokes the Cancel command.
protected OnCancelExecuteAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

OnCloseExecute() защищенный Метод

Handled when the user invokes the Close command.
protected OnCloseExecute ( ) : void
Результат void

OnOkCanExecute() защищенный Метод

Determines whether the user can execute the Ok command.
protected OnOkCanExecute ( ) : bool
Результат bool

OnOkExecuteAsync() защищенный Метод

Handled when the user invokes the Ok command.
protected OnOkExecuteAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

SimpleDataWindow() защищенный Метод

Initializes a new instance of the SimpleDataWindow class.
protected SimpleDataWindow ( ) : System
Результат System

SimpleDataWindow() защищенный Метод

Initializes a new instance of the SimpleDataWindow class.
protected SimpleDataWindow ( DataWindowMode dataWindowMode ) : System
dataWindowMode DataWindowMode
Результат System

SimpleDataWindow() защищенный Метод

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.
Результат System

ValidateData() защищенный Метод

Validates the data.
protected ValidateData ( ) : bool
Результат bool