C# Класс Zetbox.Client.WPF.WpfModelFactory

Наследование: ViewModelFactory
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

CreateDefaultView() защищенный Метод

protected CreateDefaultView ( Zetbox.Client.Presentables.ViewModel mdl ) : object
mdl Zetbox.Client.Presentables.ViewModel
Результат object

CreateDelayedTask() публичный Метод

public CreateDelayedTask ( Zetbox.Client.Presentables.ViewModel displayer, System.Action loadAction ) : IDelayedTask
displayer Zetbox.Client.Presentables.ViewModel
loadAction System.Action
Результат IDelayedTask

CreateSpecificView() защищенный Метод

protected CreateSpecificView ( Zetbox.Client.Presentables.ViewModel mdl, Zetbox kind ) : object
mdl Zetbox.Client.Presentables.ViewModel
kind Zetbox
Результат object

CreateTimer() публичный Метод

public CreateTimer ( System.TimeSpan tickLength, System.Action action ) : void
tickLength System.TimeSpan
action System.Action
Результат void

GetDecisionFromUser() публичный Метод

public GetDecisionFromUser ( string message, string caption ) : bool
message string
caption string
Результат bool

GetDestinationFileNameFromUser() публичный Метод

public GetDestinationFileNameFromUser ( string filename ) : string
filename string
Результат string

GetSourceFileNameFromUser() публичный Метод

public GetSourceFileNameFromUser ( ) : string
Результат string

ShowInView() защищенный Метод

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
Результат void

ShowMessage() публичный Метод

public ShowMessage ( string message, string caption ) : void
message string
caption string
Результат void

WpfModelFactory() публичный Метод

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
Результат System