C# Class Zetbox.Client.Forms.FormsModelFactory

Inheritance: ViewModelFactory
Show file Open project: daszat/zetbox

Public Methods

Method Description
CreateTimer ( System.TimeSpan tickLength, System.Action action ) : void
FormsModelFactory ( ILifetimeScopeFactory scopeFactory, Autofac scope, IFrozenContext metaCtx, ZetboxConfig cfg, IPerfCounter perfCounter, DialogCreator dialogFactory ) : System
GetDecisionFromUser ( string message, string caption ) : bool
GetDestinationFileNameFromUser ( string filename ) : string
GetSourceFileNameFromUser ( ) : string
ShowMessage ( string message, string caption ) : void

Protected Methods

Method Description
CreateWorkspace ( WorkspaceViewModel mdl, bool activate ) : void
ShowInView ( Zetbox.Client.Presentables.ViewModel mdl, object view, bool activate, bool asDialog, Zetbox.Client.Presentables.ViewModel ownerMdl ) : void

Private Methods

Method Description
workspace_Closed ( object sender, EventArgs e ) : void

Method Details

CreateTimer() public method

public CreateTimer ( System.TimeSpan tickLength, System.Action action ) : void
tickLength System.TimeSpan
action System.Action
return void

CreateWorkspace() protected method

protected CreateWorkspace ( WorkspaceViewModel mdl, bool activate ) : void
mdl Zetbox.Client.Presentables.ObjectBrowser.WorkspaceViewModel
activate bool
return void

FormsModelFactory() public method

public FormsModelFactory ( ILifetimeScopeFactory scopeFactory, Autofac scope, IFrozenContext metaCtx, ZetboxConfig cfg, IPerfCounter perfCounter, DialogCreator dialogFactory ) : System
scopeFactory ILifetimeScopeFactory
scope Autofac
metaCtx IFrozenContext
cfg Zetbox.API.Configuration.ZetboxConfig
perfCounter IPerfCounter
dialogFactory Zetbox.Client.GUI.DialogCreator
return System

GetDecisionFromUser() public method

public GetDecisionFromUser ( string message, string caption ) : bool
message string
caption string
return bool

GetDestinationFileNameFromUser() public method

public GetDestinationFileNameFromUser ( string filename ) : string
filename string
return string

GetSourceFileNameFromUser() public method

public GetSourceFileNameFromUser ( ) : string
return string

ShowInView() protected method

protected ShowInView ( Zetbox.Client.Presentables.ViewModel mdl, object view, bool activate, bool asDialog, Zetbox.Client.Presentables.ViewModel ownerMdl ) : void
mdl Zetbox.Client.Presentables.ViewModel
view object
activate bool
asDialog bool
ownerMdl Zetbox.Client.Presentables.ViewModel
return void

ShowMessage() public method

public ShowMessage ( string message, string caption ) : void
message string
caption string
return void