C# Class TestIntelReporter.MainForm

Inheritance: System.Windows.Forms.Form
显示文件 Open project: EtherealWake/test-intel Class Usage Examples

Public Methods

Method Description
MainForm ( ) : System

Initializes a new instance of the MainForm class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnClosing ( CancelEventArgs e ) : void

Hide the window while we are disposing of the session.

OnResize ( EventArgs e ) : void

Recenter the panels when returning from minimization.

OnShown ( EventArgs e ) : void

Starts up the intel reporting component.

WndProc ( Message &m ) : void

Looking for the wake-up message.

Private Methods

Method Description
CenterPanel ( Control panel ) : void

Recenter a pseudo-dialog within the window.

DrawBorder ( object sender, PaintEventArgs e ) : void

Draws a border for the pseudo-dialogs.

FormatCount ( int count, string formatZero, string formatOne, string formatMany ) : string

Formats an integer count using seperate strings for zero, one, or many countable items.

InitializeComponent ( ) : void

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

ShowAuthError ( string title, string message ) : void

Displays the authentication error dialog (includes a button).

ShowAuthWindow ( ) : void

Displays the login window.

ShowChannelList ( ) : void

Displays the channel list pseudo-dialog.

ShowPanel ( Control panel, Control focus ) : void

Actives the specified pseudo-dialog within the parent window. The operation includes centering, z-order manipulation, and focus changes.

ShowStatus ( string title, string message ) : void

Displays the status pseudo-dialog.

UpdateStatus ( ) : void

Performs an UI manipulations required for GUI depicted status.

buttonChangeAuth_Click ( object sender, EventArgs e ) : void

Clicked da butan in an authentication error dialog.

buttonLogin_Click ( object sender, EventArgs e ) : void

Login button has been clicked. Begin an authentication attempt.

buttonUpdate_Click ( object sender, EventArgs e ) : void

User has requested we go to the update website.

intelReporter_IntelReported ( object sender, IntelEventArgs e ) : void

Sent by IntelReporter every time it parses a new log entry.

intelReporter_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Sent by IntelReporter whenever there is some sort of status change.

notifyIcon_BalloonTipClicked ( object sender, EventArgs e ) : void
notifyIcon_DoubleClick ( object sender, EventArgs e ) : void
textBoxAuth_TextChanged ( object sender, EventArgs e ) : void

Reevaluate the validity of the authentication inputs and adjust the controls to reflect that.

timerChannels_Tick ( object sender, EventArgs e ) : void

Hides the channel list if all the channels are active.

updateCheck_UpdateAvailable ( object sender, UpdateEventArgs e ) : void

Raised by updateCheck when a new version has been made available.

Method Details

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

MainForm() public method

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

OnClosing() protected method

Hide the window while we are disposing of the session.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
return void

OnResize() protected method

Recenter the panels when returning from minimization.
protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

OnShown() protected method

Starts up the intel reporting component.
protected OnShown ( EventArgs e ) : void
e System.EventArgs
return void

WndProc() protected method

Looking for the wake-up message.
protected WndProc ( Message &m ) : void
m Message
return void