C# 클래스 Zetbox.Client.WPF.WpfModelFactory

상속: ViewModelFactory
파일 보기 프로젝트 열기: daszat/zetbox

공개 메소드들

메소드 설명
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