C# Class Dev2.Models.ExplorerItemModel

Inheritance: ObservableObject, IExplorerItemModel
显示文件 Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Properties

Property Type Description
OnCheckedStateChangedAction Action
OnRenameChangedAction Action

Public Methods

Method Description
AddNewFolder ( ) : void
CancelRename ( ) : void
Clone ( ) : ExplorerItemModel
Clone ( IConnectControlSingleton connectControlSingleton, IStudioResourceRepository studioResourceRepository ) : ExplorerItemModel
ExplorerItemModel ( ) : System
ExplorerItemModel ( IConnectControlSingleton connectControlSingleton, IStudioResourceRepository studioResourceRepository ) : System
ExplorerItemModel ( IStudioResourceRepository studioResourceRepository, IAsyncWorker asyncWorker, IConnectControlSingleton connectControlSingleton ) : System
OnChildrenChanged ( ) : void
RefreshName ( string newName ) : void
RemoveChild ( IExplorerItemModel child ) : void
SetDisplay ( string display ) : void
SetIsChecked ( bool value, bool updateChildren, bool updateParent, bool calcStats = true ) : void

Sets the IsChecked Property and updates children and parent

UpdateCategoryIfOpened ( string category ) : void
VerifyCheckState ( ) : void

Verifies the state of the IsChecked property by taking the childrens IsChecked State into account

Private Methods

Method Description
CancelRename ( System.Windows.Input.KeyEventArgs eventArgs ) : void
ChildrenCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
Connect ( ) : void

Connects this instance.

ConnectedStatusChanged ( object sender, ConnectionStatusChangedEventArg e ) : void
Debug ( ) : void

Executes the edit command and send a message to debug

Delete ( ) : void

Sends a message to delete this specific instance

DeleteVersion ( ) : void
Deploy ( ) : void

Deploys this instance.

Disconnect ( ) : void

Connects this instance.

Edit ( ) : void

Edits this instance.

GetChildrenCount ( ) : int
GetRenamePath ( string existingPath, string newName ) : string
GetUniqueName ( ) : string
Refresh ( ) : void
Remove ( ) : void

Removes the specified child from the children.

Rename ( string newName ) : bool
Rollback ( ) : void
ShowDependencies ( ) : void

Sends a message to show the dependencies.

ShowNewResourceWizard ( object obj ) : void
ShowServerVersionAbout ( ) : void
ToggleVersionHistory ( ) : void
UpdateChildren ( bool updateChildren ) : void
UpdateParent ( bool updateParent ) : void

Method Details

AddNewFolder() public method

public AddNewFolder ( ) : void
return void

CancelRename() public method

public CancelRename ( ) : void
return void

Clone() public method

public Clone ( ) : ExplorerItemModel
return ExplorerItemModel

Clone() public method

public Clone ( IConnectControlSingleton connectControlSingleton, IStudioResourceRepository studioResourceRepository ) : ExplorerItemModel
connectControlSingleton IConnectControlSingleton
studioResourceRepository IStudioResourceRepository
return ExplorerItemModel

ExplorerItemModel() public method

public ExplorerItemModel ( ) : System
return System

ExplorerItemModel() public method

public ExplorerItemModel ( IConnectControlSingleton connectControlSingleton, IStudioResourceRepository studioResourceRepository ) : System
connectControlSingleton IConnectControlSingleton
studioResourceRepository IStudioResourceRepository
return System

ExplorerItemModel() public method

public ExplorerItemModel ( IStudioResourceRepository studioResourceRepository, IAsyncWorker asyncWorker, IConnectControlSingleton connectControlSingleton ) : System
studioResourceRepository IStudioResourceRepository
asyncWorker IAsyncWorker
connectControlSingleton IConnectControlSingleton
return System

OnChildrenChanged() public method

public OnChildrenChanged ( ) : void
return void

RefreshName() public method

public RefreshName ( string newName ) : void
newName string
return void

RemoveChild() public method

public RemoveChild ( IExplorerItemModel child ) : void
child IExplorerItemModel
return void

SetDisplay() public method

public SetDisplay ( string display ) : void
display string
return void

SetIsChecked() public method

Sets the IsChecked Property and updates children and parent
public SetIsChecked ( bool value, bool updateChildren, bool updateParent, bool calcStats = true ) : void
value bool The value.
updateChildren bool /// if set to true [update children]. ///
updateParent bool /// if set to true [update parent]. ///
calcStats bool
return void

UpdateCategoryIfOpened() public method

public UpdateCategoryIfOpened ( string category ) : void
category string
return void

VerifyCheckState() public method

Verifies the state of the IsChecked property by taking the childrens IsChecked State into account
public VerifyCheckState ( ) : void
return void

Property Details

OnCheckedStateChangedAction public_oe static_oe property

public static Action OnCheckedStateChangedAction
return Action

OnRenameChangedAction public_oe static_oe property

public static Action OnRenameChangedAction
return Action