C# Class TheChan.Common.Core.Tab

Inheritance: Caliburn.Micro.ViewAware, IHaveDisplayName, IActivateWithParameter, IDeactivate, IGuardClose, IChild
ファイルを表示 Open project: acedened/TheChan

Public Methods

Method Description
CanClose ( Action callback ) : void

Called to check whether or not this instance can close.

Deactivate ( bool close ) : void

Deactivates this instance.

RequestDeactivating ( ) : bool
TryClose ( bool dialogResult ) : void

Tries to close this instance. Also provides an opportunity to pass a dialog result to it's corresponding view.

Protected Methods

Method Description
OnActivate ( object parameter = null ) : void
OnDeactivate ( bool close ) : void
OnInitialize ( ) : void
Tab ( ) : System
Translate ( string id ) : string

Private Methods

Method Description
IActivateWithParameter ( object parameter ) : void

Method Details

CanClose() public method

Called to check whether or not this instance can close.
public CanClose ( Action callback ) : void
callback Action The implementer calls this action with the result of the close check.
return void

Deactivate() public method

Deactivates this instance.
public Deactivate ( bool close ) : void
close bool Indicates whether or not this instance is being closed.
return void

OnActivate() protected method

protected OnActivate ( object parameter = null ) : void
parameter object
return void

OnDeactivate() protected method

protected OnDeactivate ( bool close ) : void
close bool
return void

OnInitialize() protected method

protected OnInitialize ( ) : void
return void

RequestDeactivating() public method

public RequestDeactivating ( ) : bool
return bool

Tab() protected method

protected Tab ( ) : System
return System

Translate() protected method

protected Translate ( string id ) : string
id string
return string

TryClose() public method

Tries to close this instance. Also provides an opportunity to pass a dialog result to it's corresponding view.
public TryClose ( bool dialogResult ) : void
dialogResult bool The dialog result.
return void