C# Class FdoToolbox.Base.Controls.ViewContent

Inheritance: System.Windows.Forms.UserControl, IViewContent
Exibir arquivo Open project: jumpinjackie/fdotoolbox

Public Methods

Method Description
Close ( ) : void

Closes the view. This raises the ViewContentClosing event

Confirm ( string title, string message ) : bool

Make a request for confirmation

ConfirmFormatted ( string title, string format ) : bool

Make a request for confirmation

ShowError ( Exception ex ) : void

Displays an exception message

ShowError ( string message ) : void

Displays an error message

ShowMessage ( string title, string message ) : void

Displays an alert message

ViewContent ( ) : System

Initializes a new instance of the ViewContent class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnBeforeConnectionRemove ( object sender, ConnectionBeforeRemoveEventArgs e ) : void
OnConnectionAdded ( object sender, FdoToolbox e ) : void
OnConnectionRefreshed ( object sender, FdoToolbox e ) : void
OnConnectionRemoved ( object sender, FdoToolbox e ) : void
OnConnectionRenamed ( object sender, ConnectionRenameEventArgs e ) : void

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnDisposed ( object sender, EventArgs e ) : void

Method Details

Close() public method

Closes the view. This raises the ViewContentClosing event
public Close ( ) : void
return void

Confirm() public method

Make a request for confirmation
public Confirm ( string title, string message ) : bool
title string The title of the confirmation message
message string The message
return bool

ConfirmFormatted() public method

Make a request for confirmation
public ConfirmFormatted ( string title, string format ) : bool
title string The title of the confirmation message
format string The message template
return bool

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

OnBeforeConnectionRemove() protected method

protected OnBeforeConnectionRemove ( object sender, ConnectionBeforeRemoveEventArgs e ) : void
sender object
e FdoToolbox.Base.Services.ConnectionBeforeRemoveEventArgs
return void

OnConnectionAdded() protected method

protected OnConnectionAdded ( object sender, FdoToolbox e ) : void
sender object
e FdoToolbox
return void

OnConnectionRefreshed() protected method

protected OnConnectionRefreshed ( object sender, FdoToolbox e ) : void
sender object
e FdoToolbox
return void

OnConnectionRemoved() protected method

protected OnConnectionRemoved ( object sender, FdoToolbox e ) : void
sender object
e FdoToolbox
return void

OnConnectionRenamed() protected method

protected OnConnectionRenamed ( object sender, ConnectionRenameEventArgs e ) : void
sender object
e FdoToolbox.Base.Services.ConnectionRenameEventArgs
return void

ShowError() public method

Displays an exception message
public ShowError ( Exception ex ) : void
ex System.Exception The exception object
return void

ShowError() public method

Displays an error message
public ShowError ( string message ) : void
message string The message
return void

ShowMessage() public method

Displays an alert message
public ShowMessage ( string title, string message ) : void
title string The title of this message
message string The message
return void

ViewContent() public method

Initializes a new instance of the ViewContent class.
public ViewContent ( ) : System
return System