C# Class FormExample.Form1

Inheritance: System.Windows.Forms.Form
Show file Open project: EldinZenderink/SimpleIRCLib

Public Properties

Property Type Description
debugForm DebugForm
defaultDownloadDirectory string
irc SimpleIRCLib.SimpleIRC

Public Methods

Method Description
Form1 ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AppendChatMessageToChatOutput ( string user, string message ) : void

Appends chat message received from irc server to richtextbox output box. Invoke is needed because this method executes on a different thread!

ConnectButton_Click ( object sender, EventArgs e ) : void

Gets the values from the input fields and starts the client

DisconnectButton_Click ( object sender, EventArgs e ) : void

Disconnects the irc client, if connected

DownloadsList_MouseDoubleClick ( object sender, MouseEventArgs e ) : void

Opens the folder where the selected file is being downloaded to

Form1_FormClosing ( object sender, FormClosingEventArgs e ) : void

Stops the irc client on form close, otherwise it would keep running in the background!!!

InitializeComponent ( ) : void

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

MessageInput_KeyDown ( object sender, KeyEventArgs e ) : void

Sends a message to the irc server on enter press, if connected

OnDownloadEvent ( ) : void

Gets the information about the download

SendMessageButton_Click ( object sender, EventArgs e ) : void

Sends a message to the irc server on button click, if connected

SetDownloadFolderButton_Click ( object sender, EventArgs e ) : void

Set download directory to a custom directory

ShowDebugButton_Click ( object sender, EventArgs e ) : void

Opens the debug form

updateDownloadList ( string toUpdate, string fileName ) : void

Updates the DownloadList object on the main form while the download is going, invoke is necesary because method is being called from a different Thread!

updateProgressBar ( int progress ) : void

Updates the progress bar

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

Form1() public method

public Form1 ( ) : System
return System

Property Details

debugForm public property

public DebugForm,FormExample debugForm
return DebugForm

defaultDownloadDirectory public property

public string defaultDownloadDirectory
return string

irc public property

public SimpleIRC,SimpleIRCLib irc
return SimpleIRCLib.SimpleIRC