C# Class Zetbox.Client.WPF.WpfModelFactory

Inheritance: ViewModelFactory
Afficher le fichier Open project: daszat/zetbox

Méthodes publiques

Méthode Description
CreateDelayedTask ( Zetbox.Client.Presentables.ViewModel displayer, System.Action loadAction ) : IDelayedTask
CreateTimer ( System.TimeSpan tickLength, System.Action action ) : void
GetDecisionFromUser ( string message, string caption ) : bool
GetDestinationFileNameFromUser ( string filename ) : string
GetSourceFileNameFromUser ( ) : string
ShowMessage ( string message, string caption ) : void
WpfModelFactory ( ILifetimeScopeFactory scopeFactory, Autofac scope, IFrozenContext frozenCtx, ZetboxConfig cfg, IPerfCounter perfCounter, DialogCreator dialogFactory ) : System

Méthodes protégées

Méthode Description
CreateDefaultView ( Zetbox.Client.Presentables.ViewModel mdl ) : object
CreateSpecificView ( Zetbox.Client.Presentables.ViewModel mdl, Zetbox kind ) : object
ShowInView ( Zetbox.Client.Presentables.ViewModel mdl, object view, bool activate, bool asDialog, Zetbox.Client.Presentables.ViewModel ownerMdl ) : void

Private Methods

Méthode Description
window_Activated ( object sender, EventArgs e ) : void
window_Closed ( object sender, EventArgs e ) : void

Implemented explicit application shutdown

In BasicAuth scenarios the Password Dialog is shown first and closed before the Main Application Window is created. This will let WPF think that the Application should shut down.

Method Details

CreateDefaultView() protected méthode

protected CreateDefaultView ( Zetbox.Client.Presentables.ViewModel mdl ) : object
mdl Zetbox.Client.Presentables.ViewModel
Résultat object

CreateDelayedTask() public méthode

public CreateDelayedTask ( Zetbox.Client.Presentables.ViewModel displayer, System.Action loadAction ) : IDelayedTask
displayer Zetbox.Client.Presentables.ViewModel
loadAction System.Action
Résultat IDelayedTask

CreateSpecificView() protected méthode

protected CreateSpecificView ( Zetbox.Client.Presentables.ViewModel mdl, Zetbox kind ) : object
mdl Zetbox.Client.Presentables.ViewModel
kind Zetbox
Résultat object

CreateTimer() public méthode

public CreateTimer ( System.TimeSpan tickLength, System.Action action ) : void
tickLength System.TimeSpan
action System.Action
Résultat void

GetDecisionFromUser() public méthode

public GetDecisionFromUser ( string message, string caption ) : bool
message string
caption string
Résultat bool

GetDestinationFileNameFromUser() public méthode

public GetDestinationFileNameFromUser ( string filename ) : string
filename string
Résultat string

GetSourceFileNameFromUser() public méthode

public GetSourceFileNameFromUser ( ) : string
Résultat string

ShowInView() protected méthode

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
Résultat void

ShowMessage() public méthode

public ShowMessage ( string message, string caption ) : void
message string
caption string
Résultat void

WpfModelFactory() public méthode

public WpfModelFactory ( ILifetimeScopeFactory scopeFactory, Autofac scope, IFrozenContext frozenCtx, ZetboxConfig cfg, IPerfCounter perfCounter, DialogCreator dialogFactory ) : System
scopeFactory ILifetimeScopeFactory
scope Autofac
frozenCtx IFrozenContext
cfg Zetbox.API.Configuration.ZetboxConfig
perfCounter IPerfCounter
dialogFactory Zetbox.Client.GUI.DialogCreator
Résultat System