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

WinForms implementation of IDialogBoxView.

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.CreateDialogBoxView method.

Reasons for subclassing may include: overriding the CreateDialogBoxForm factory method to supply a custom subclass of the DialogBoxForm class.

Inheritance: ClearCanvas.Desktop.View.WinForms.DesktopObjectView, IDialogBoxView
Exibir arquivo Open project: jasper-yeh/ClearCanvas

Public Methods

Method Description
Activate ( ) : void

Not used.

Hide ( ) : void

Not used.

Open ( ) : void

Not used.

RunModal ( ) : DialogBoxAction

Runs the modal dialog.

SetTitle ( string title ) : void

Sets the title of the dialog box.

Show ( ) : void

Not used.

Protected Methods

Method Description
CreateDialogBoxForm ( DialogBox dialogBox, Control content ) : ClearCanvas.Desktop.View.WinForms.DialogBoxForm

Called to create an instance of a DialogBoxForm for use by this view.

DialogBoxView ( DialogBox dialogBox, DesktopWindowView owner ) : System

Constructor.

Dispose ( bool disposing ) : void

Disposes of this object.

Private Methods

Method Description
DisposeForm ( ) : void
_form_FormClosing ( object sender, FormClosingEventArgs e ) : void

Method Details

Activate() public method

Not used.
public Activate ( ) : void
return void

CreateDialogBoxForm() protected method

Called to create an instance of a DialogBoxForm for use by this view.
protected CreateDialogBoxForm ( DialogBox dialogBox, Control content ) : ClearCanvas.Desktop.View.WinForms.DialogBoxForm
dialogBox DialogBox
content System.Windows.Forms.Control
return ClearCanvas.Desktop.View.WinForms.DialogBoxForm

DialogBoxView() protected method

Constructor.
protected DialogBoxView ( DialogBox dialogBox, DesktopWindowView owner ) : System
dialogBox DialogBox
owner DesktopWindowView
return System

Dispose() protected method

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

Hide() public method

Not used.
public Hide ( ) : void
return void

Open() public method

Not used.
public Open ( ) : void
return void

RunModal() public method

Runs the modal dialog.
public RunModal ( ) : DialogBoxAction
return DialogBoxAction

SetTitle() public method

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

Show() public method

Not used.
public Show ( ) : void
return void