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

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
OnDisposed ( ) : void

Private Methods

Méthode 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 méthode

Constructor.
public AcceptCancelDialogViewModel ( ) : System
Résultat System

AcceptCancelDialogViewModel() public méthode

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).
Résultat System

OnDisposed() protected méthode

protected OnDisposed ( ) : void
Résultat void

Reset() public méthode

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