C# Class Zetbox.Client.Presentables.ObjectEditor.WorkspaceViewModel

Inheritance: WindowViewModel, IMultipleInstancesManager, IContextViewModel, IDeleteCommandParameter
Show file Open project: daszat/zetbox Class Usage Examples

Private Properties

Property Type Description
IContextViewModel void
Items_CollectionChanged void
OnSaved void
OnSaving void
ValidationManager_Changed void
dataCtx_IsModifiedChanged void

Public Methods

Method Description
AddItem ( ViewModel mdl ) : void

registers a user contact with the mdl in this WorkspaceViewModel's history

CanClose ( ) : bool
CanSave ( ) : bool

Returns a cached result. Called too often, will slow UI down if it would realy evaluate errors

Create ( ILifetimeScope scope, IZetboxContext ctx ) : WorkspaceViewModel
Delete ( ) : void
DoDragDrop ( ) : object
OnDrop ( object data ) : bool
Save ( ) : bool
SaveAndClose ( ) : void
ShowModel ( ViewModel mdl ) : void
ShowObject ( IDataObject obj, ControlKind requestedKind = null, bool activate = true ) : DataObjectViewModel
ShowVerificationResults ( ) : void
UpdateErrors ( ) : void
WorkspaceViewModel ( IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, IZetboxContextExceptionHandler exceptionHandler ) : System

Protected Methods

Method Description
CreateCommands ( ) : ObservableCollection
Dispose ( bool disposing ) : void

Private Methods

Method Description
IContextViewModel ( ) : void
Items_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
OnSaved ( ) : void
OnSaving ( ) : void
ValidationManager_Changed ( object sender, EventArgs e ) : void
dataCtx_IsModifiedChanged ( object sender, EventArgs e ) : void

Method Details

AddItem() public method

registers a user contact with the mdl in this WorkspaceViewModel's history
public AddItem ( ViewModel mdl ) : void
mdl ViewModel
return void

CanClose() public method

public CanClose ( ) : bool
return bool

CanSave() public method

Returns a cached result. Called too often, will slow UI down if it would realy evaluate errors
public CanSave ( ) : bool
return bool

Create() public static method

public static Create ( ILifetimeScope scope, IZetboxContext ctx ) : WorkspaceViewModel
scope ILifetimeScope
ctx IZetboxContext
return WorkspaceViewModel

CreateCommands() protected method

protected CreateCommands ( ) : ObservableCollection
return ObservableCollection

Delete() public method

public Delete ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DoDragDrop() public method

public DoDragDrop ( ) : object
return object

OnDrop() public method

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

Save() public method

public Save ( ) : bool
return bool

SaveAndClose() public method

public SaveAndClose ( ) : void
return void

ShowModel() public method

public ShowModel ( ViewModel mdl ) : void
mdl ViewModel
return void

ShowObject() public method

public ShowObject ( IDataObject obj, ControlKind requestedKind = null, bool activate = true ) : DataObjectViewModel
obj IDataObject
requestedKind ControlKind
activate bool
return DataObjectViewModel

ShowVerificationResults() public method

public ShowVerificationResults ( ) : void
return void

UpdateErrors() public method

public UpdateErrors ( ) : void
return void

WorkspaceViewModel() public method

public WorkspaceViewModel ( IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, IZetboxContextExceptionHandler exceptionHandler ) : System
appCtx IViewModelDependencies
dataCtx IZetboxContext
parent ViewModel
exceptionHandler IZetboxContextExceptionHandler
return System