C# Class Zetbox.Client.Presentables.ActionViewModel

Inheritance: CommandViewModel
Show file Open project: daszat/zetbox

Public Methods

Method Description
ActionViewModel ( IViewModelDependencies appCtx, IZetboxContext dataCtx, Zetbox.Client.Presentables.ViewModel parent, IDataObject obj, Method m ) : System
CanExecute ( object data ) : bool
Execute ( ) : void

Execute the modelled Method.

Execute ( System.Action callback ) : void

Execute the modelled Method. The callback will be called back on the UI thread after the execution has finished.

Protected Methods

Method Description
DoExecute ( object data ) : void

Private Methods

Method Description
HandleResult ( object result, object callback ) : void
MethodPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Method Details

ActionViewModel() public method

public ActionViewModel ( IViewModelDependencies appCtx, IZetboxContext dataCtx, Zetbox.Client.Presentables.ViewModel parent, IDataObject obj, Method m ) : System
appCtx IViewModelDependencies
dataCtx IZetboxContext
parent Zetbox.Client.Presentables.ViewModel
obj IDataObject
m Method
return System

CanExecute() public method

public CanExecute ( object data ) : bool
data object
return bool

DoExecute() protected method

protected DoExecute ( object data ) : void
data object
return void

Execute() public method

Execute the modelled Method.
public Execute ( ) : void
return void

Execute() public method

Execute the modelled Method. The callback will be called back on the UI thread after the execution has finished.
public Execute ( System.Action callback ) : void
callback System.Action A callback or null
return void