C# Class Open.Core.UI.Controls.AcceptCancelDialogViewModel

The logical presentation model for the 'AcceptCancelDialog' view.
Inheritance: ViewModelBase, IAcceptCancelDialog
Show file Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Methods

Method Description
AcceptCancelDialogViewModel ( ) : System

Constructor.

AcceptCancelDialogViewModel ( System.Windows.DataTemplate contentTemplate, INotifyPropertyChanged contentViewModel ) : System

Constructor.

Reset ( ) : void

Resets the OK/Cancel labels to their default values and ensure both button are visible.

Protected Methods

Method Description
OnDisposed ( ) : void

Private Methods

Method Description
HandleAcceptClick ( object sender, EventArgs e ) : void
HandleCancelClick ( object sender, EventArgs e ) : void
OnAcceptClick ( ) : void
OnCancelClick ( ) : void
WireEvents ( IAcceptCancelPresenter presenter, bool add ) : void

Method Details

AcceptCancelDialogViewModel() public method

Constructor.
public AcceptCancelDialogViewModel ( ) : System
return System

AcceptCancelDialogViewModel() public method

Constructor.
public AcceptCancelDialogViewModel ( System.Windows.DataTemplate contentTemplate, INotifyPropertyChanged contentViewModel ) : System
contentTemplate System.Windows.DataTemplate The XAML template of the dialog content (see 'Content' property).
contentViewModel INotifyPropertyChanged The view-model for the content (see 'Content' property).
return System

OnDisposed() protected method

protected OnDisposed ( ) : void
return void

Reset() public method

Resets the OK/Cancel labels to their default values and ensure both button are visible.
public Reset ( ) : void
return void