C# Class ClearCanvas.Desktop.View.WinForms.WorkspaceView

WinForms implementation of IWorkspaceView.

This class may subclassed if customization is desired. In this case, the DesktopWindowView class must also be subclassed in order to instantiate the subclass from its DesktopWindowView.CreateWorkspaceView method.

Reasons for subclassing may include: overriding SetTitle to customize the display of the workspace title.

Inheritance: ClearCanvas.Desktop.View.WinForms.DesktopObjectView, IWorkspaceView
Show file Open project: jasper-yeh/ClearCanvas Class Usage Examples

Public Methods

Method Description
Activate ( ) : void

Activates the workspace, making the tab the selected tab.

CreateDialogBoxView ( WorkspaceDialogBox dialogBox ) : IWorkspaceDialogBoxView

Creates a new view for the specified WorkspaceDialogBox.

Override this method if you want to return a custom implementation of IWorkspaceDialogBoxView. In practice, it is preferable to subclass WorkspaceDialogBoxView rather than implement IWorkspaceDialogBoxView directly.

Hide ( ) : void

Not implemented.

Open ( ) : void

Opens the workspace, adding the tab to the tab group.

SetTitle ( string title ) : void

Sets the title of the workspace.

Show ( ) : void

Not implemented.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes of this object.

WorkspaceView ( Workspace workspace, DesktopWindowView desktopView ) : System.Windows.Forms

Constructor.

Private Methods

Method Description
AddDialogBoxView ( WorkspaceDialogBoxView view ) : void
RemoveDialogBoxView ( WorkspaceDialogBoxView view ) : void

Method Details

Activate() public method

Activates the workspace, making the tab the selected tab.
public Activate ( ) : void
return void

CreateDialogBoxView() public method

Creates a new view for the specified WorkspaceDialogBox.
Override this method if you want to return a custom implementation of IWorkspaceDialogBoxView. In practice, it is preferable to subclass WorkspaceDialogBoxView rather than implement IWorkspaceDialogBoxView directly.
public CreateDialogBoxView ( WorkspaceDialogBox dialogBox ) : IWorkspaceDialogBoxView
dialogBox WorkspaceDialogBox
return IWorkspaceDialogBoxView

Dispose() protected method

Disposes of this object.
protected Dispose ( bool disposing ) : void
disposing bool
return void

Hide() public method

Not implemented.
public Hide ( ) : void
return void

Open() public method

Opens the workspace, adding the tab to the tab group.
public Open ( ) : void
return void

SetTitle() public method

Sets the title of the workspace.
public SetTitle ( string title ) : void
title string
return void

Show() public method

Not implemented.
public Show ( ) : void
return void

WorkspaceView() protected method

Constructor.
protected WorkspaceView ( Workspace workspace, DesktopWindowView desktopView ) : System.Windows.Forms
workspace Workspace
desktopView DesktopWindowView
return System.Windows.Forms