C# Class ClearCanvas.Desktop.Workspace

Represents a workspace within a desktop window.
Inheritance: ClearCanvas.Desktop.DesktopObject, IWorkspace
Mostra file Open project: jasper-yeh/ClearCanvas Class Usage Examples

Private Properties

Property Type Description
CreateWorkspaceDialogBoxView IWorkspaceDialogBoxView

Public Methods

Method Description
ShowDialogBox ( ClearCanvas.Desktop.DialogBoxCreationArgs args ) : WorkspaceDialogBox

Shows a dialog box in front of this workspace.

Protected Methods

Method Description
CanClose ( ) : bool

Asks the object whether it is in a closable state without user intervention.

CreateView ( ) : IDesktopObjectView

Creates a view for this workspace.

Dispose ( bool disposing ) : void

Stops the hosted component.

Initialize ( ) : void

Starts the hosted component.

OnClosing ( ClosingEventArgs args ) : void

Overridden to prevent closing the Workspace if UserClosable is false.

PrepareClose ( CloseReason reason ) : bool

Gives the hosted component a chance to prepare for a forced exit.

Workspace ( ClearCanvas.Desktop.WorkspaceCreationArgs args, DesktopWindow desktopWindow ) : System

Constructor.

Private Methods

Method Description
CreateWorkspaceDialogBoxView ( WorkspaceDialogBox dialogBox ) : IWorkspaceDialogBoxView

Creates a dialog box view for the specified dialog box.

Method Details

CanClose() protected method

Asks the object whether it is in a closable state without user intervention.
protected CanClose ( ) : bool
return bool

CreateView() protected final method

Creates a view for this workspace.
protected final CreateView ( ) : IDesktopObjectView
return IDesktopObjectView

Dispose() protected method

Stops the hosted component.
protected Dispose ( bool disposing ) : void
disposing bool
return void

Initialize() protected method

Starts the hosted component.
protected Initialize ( ) : void
return void

OnClosing() protected method

Overridden to prevent closing the Workspace if UserClosable is false.
protected OnClosing ( ClosingEventArgs args ) : void
args ClosingEventArgs
return void

PrepareClose() protected method

Gives the hosted component a chance to prepare for a forced exit.
protected PrepareClose ( CloseReason reason ) : bool
reason CloseReason
return bool

ShowDialogBox() public method

Shows a dialog box in front of this workspace.
public ShowDialogBox ( ClearCanvas.Desktop.DialogBoxCreationArgs args ) : WorkspaceDialogBox
args ClearCanvas.Desktop.DialogBoxCreationArgs Arguments used to create the dialog box.
return WorkspaceDialogBox

Workspace() protected method

Constructor.
protected Workspace ( ClearCanvas.Desktop.WorkspaceCreationArgs args, DesktopWindow desktopWindow ) : System
args ClearCanvas.Desktop.WorkspaceCreationArgs Arguments for creation of the .
desktopWindow DesktopWindow The that owns the .
return System