C# Class Yaircc.MainForm

Represents the main form used in the application.
Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: rastating/yaircc Class Usage Examples

Private Properties

Свойство Type Description
AboutToolStripMenuItem_Click void
ActionQueueTimer_Tick void
BuildFavouriteButtons void
ChannelBrowserToolStripButton_Click void
ChannelsTabControl_ControlRemoved void
ChannelsTabControl_MouseDown void
ChannelsTabControl_SelectedIndexChanged void
CheckForUpdatesToolStripMenuItem_Click void
ClearLogToolStripButton_Click void
CloseChannelTabMenuItem_Click void
CollapseAllToolStripMenuItem_Click void
CommandIsClearCommand bool
CommandIsCommandsList bool
CommandIsConnectionRequest bool
CommandIsEmoticonsCommand bool
ConnectToolStripMenuItem_Click void
CopyToolStripMenuItem_Click void
CutToolStripMenuItem_Click void
DeleteToolStripMenuItem_Click void
DisconnectTabMenuItem_Click void
DisconnectToolStripMenuItem_Click void
ExitToolStripMenuItem_Click void
ExpandAllToolStripMenuItem_Click void
FavouriteServer_Click void
FavouritesToolStripSplitButton_ButtonClick void
FlashWindowInTaskBar void
GetForegroundWindow IntPtr
GroupByModeToolStripMenuItem_Click void
HandleInput void
InitializeComponent void
InputTextBox_KeyDown void
InputTextBox_KeyPress void
InputTextBox_TextChanged void
JoinChannelToolStripMenuItem_Click void
LeaveChannelTabMenuItem_Click void
ListCommands void
MainForm_Activated void
MainForm_FormClosing void
MainForm_Resize void
MainForm_Shown void
MentionUserToolStripMenuItem_Click void
ModeToolStripMenuItem_Click void
NicknameToolStripMenuItem_Click void
OpenPrivateChatMenuItem_Click void
PasteToolStripMenuItem_Click void
PopulateInputBoxFromCommandList void
ProcessConnectionRequest void
ProcessConnectionRequest void
ProcessConnectionRequest void
RedoToolStripMenuItem_Click void
RefreshWindowsMenuItems void
SaveAsToolStripMenuItem_Click void
SelectAllToolStripMenuItem_Click void
SettingsToolStripMenuItem_Click void
ShowForm void
ThemesToolStripMenuItem_Click void
ToggleEnabledControl void
UndoToolStripMenuItem_Click void
UpdateCheckBackgroundWorker_DoWork void
UpdateCheckBackgroundWorker_ProgressChanged void
UpdateCheckBackgroundWorker_RunWorkerCompleted void
UpdateStatusBarText void
UpgradeSettings void
UserTreeView_MouseDown void
WhoIsMenuItem_Click void
WindowsToolStripMenuItem_Click void

Méthodes publiques

Méthode Description
ChannelCreated ( object sender, IRCChannel channel ) : void

Handles the ChannelCreated event of Yaircc.UI.IRCMarshal.

ChannelUsersPopulated ( object sender, List users ) : void

Handles the NamesPopulated event of Yaircc.UI.IRCChannel.

ConfigureNewIRCMarshal ( object sender, IRCMarshal marshal ) : void

Configures a newly created Yaircc.UI.IRCMarshal.

InsertNickNameIntoMessage ( string nickName ) : void

Inserts the specified nick name into the input textbox.

MainForm ( ) : System

Initialises a new instance of the MainForm class.

MarshalRegistered ( IRCMarshal marshal ) : void

Indicates that a marshal has successfully registered on a network.

MarshalUnregistered ( IRCMarshal marshal ) : void

Indicates that a marshal has unregistered from a network.

SetupForm ( ) : void

Sets up the console page and initiates an update check.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
AboutToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

ActionQueueTimer_Tick ( object sender, EventArgs e ) : void

Handles the Tick event of System.Windows.Forms.Timer.

BuildFavouriteButtons ( ) : void

Build the favourite server shortcut buttons.

ChannelBrowserToolStripButton_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripButton.

ChannelsTabControl_ControlRemoved ( object sender, ControlEventArgs e ) : void

Handles the ControlRemoved event of System.Windows.Forms.TabControl.

ChannelsTabControl_MouseDown ( object sender, MouseEventArgs e ) : void

Handles the MouseDown event of System.Windows.Forms.TabControl.

ChannelsTabControl_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of System.Windows.Forms.TabControl.

CheckForUpdatesToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

ClearLogToolStripButton_Click ( object sender, EventArgs e ) : void

Handles the Click event of System.Windows.Forms.ToolStripButton.

CloseChannelTabMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of System.Windows.Forms.ToolStripMenuItem.

CollapseAllToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

CommandIsClearCommand ( string input ) : bool

Gets a value that indicates whether or not the command issued was /clear.

CommandIsCommandsList ( string input ) : bool

Gets a value that indicates whether or not the command issued was /commands.

CommandIsConnectionRequest ( string command ) : bool

Gets a value that indicates whether or not command is a server command.

CommandIsEmoticonsCommand ( string input ) : bool

Gets a value that indicates whether or not the command issued was /emoticons.

ConnectToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

CopyToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

CutToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

DeleteToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

DisconnectTabMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of System.Windows.Forms.ToolStripMenuItem.

DisconnectToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

ExitToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

ExpandAllToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

FavouriteServer_Click ( object sender, EventArgs e ) : void

Handles the Click event of System.Windows.Forms.ToolStripMenuItem.

FavouritesToolStripSplitButton_ButtonClick ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem and the ButtonClick event of ToolStripSplitButton.

FlashWindowInTaskBar ( ) : void

Handles the NickNameMentioned event of Yaircc.UI.IRCTabPage.

GetForegroundWindow ( ) : IntPtr
GroupByModeToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

HandleInput ( ) : void

Handle the data currently in the text box.

InitializeComponent ( ) : void

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

InputTextBox_KeyDown ( object sender, KeyEventArgs e ) : void

Handles the KeyDown event of Intninety.TemporalTextBox.

InputTextBox_KeyPress ( object sender, KeyPressEventArgs e ) : void

Handles the KeyPress event of Intninety.TemporalTextBox.

InputTextBox_TextChanged ( object sender, EventArgs e ) : void

Handles the TextChanged event of Intninety.TemporalTextBox.

JoinChannelToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

LeaveChannelTabMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of System.Windows.Forms.ToolStripMenuItem.

ListCommands ( ) : void

Lists the supported commands in the current tab.

MainForm_Activated ( object sender, EventArgs e ) : void

Handles the Activated event of System.Windows.Forms.Form.

MainForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Handles the FormClosing event of System.Windows.Forms.Form.

MainForm_Resize ( object sender, EventArgs e ) : void

Handles the Resize event of System.Windows.Forms.Form.

MainForm_Shown ( object sender, EventArgs e ) : void

Handles the Shown event of System.Windows.Forms.Form.

MentionUserToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

ModeToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

NicknameToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

OpenPrivateChatMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of System.Windows.Forms.ToolStripMenuItem.

PasteToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

PopulateInputBoxFromCommandList ( int index ) : void

Populates the input box from the command list using the specified index.

ProcessConnectionRequest ( Server server ) : void

Processes a connection request and creates marshals and tabs were needed.

ProcessConnectionRequest ( string input ) : void

Processes a connection request and creates marshals and tabs were needed.

ProcessConnectionRequest ( string input, Server server ) : void

Processes a connection request and creates marshals and tabs were needed.

RedoToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

RefreshWindowsMenuItems ( Control controlToIgnore ) : void

Refreshes the menu items that appear under the windows menu.

SaveAsToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

SelectAllToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

SettingsToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

ShowForm ( ) : void

Hide the splash screen and show the main form.

ThemesToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

ToggleEnabledControl ( Control control, bool enabled ) : void

Toggles whether or not a control and all child controls are enabled.

UndoToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

UpdateCheckBackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void

Handles the DoWork event of System.ComponentModel.BackgroundWorker.

UpdateCheckBackgroundWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

Handles the ProgressChanged event of System.ComponentModel.BackgroundWorker.

UpdateCheckBackgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Handles the RunWorkerCompleted event of System.ComponentModel.BackgroundWorker.

UpdateStatusBarText ( ) : void

Updates the status bar text with a description of the currently selected tab.

UpgradeSettings ( ) : void

Upgrades the settings file to the latest version where required.

UserTreeView_MouseDown ( object sender, MouseEventArgs e ) : void

Handles the MouseDown event of System.Windows.Forms.TreeView.

WhoIsMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of System.Windows.Forms.ToolStripMenuItem.

WindowsToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of ToolStripMenuItem.

Method Details

ChannelCreated() public méthode

Handles the ChannelCreated event of Yaircc.UI.IRCMarshal.
public ChannelCreated ( object sender, IRCChannel channel ) : void
sender object The source of the event.
channel IRCChannel The newly created channel.
Résultat void

ChannelUsersPopulated() public méthode

Handles the NamesPopulated event of Yaircc.UI.IRCChannel.
public ChannelUsersPopulated ( object sender, List users ) : void
sender object The source of the event.
users List The users that are in the channel.
Résultat void

ConfigureNewIRCMarshal() public méthode

Configures a newly created Yaircc.UI.IRCMarshal.
public ConfigureNewIRCMarshal ( object sender, IRCMarshal marshal ) : void
sender object The source of the invocation.
marshal IRCMarshal The marshal that was created.
Résultat void

Dispose() protected méthode

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

InsertNickNameIntoMessage() public méthode

Inserts the specified nick name into the input textbox.
public InsertNickNameIntoMessage ( string nickName ) : void
nickName string The nick name to insert.
Résultat void

MainForm() public méthode

Initialises a new instance of the MainForm class.
public MainForm ( ) : System
Résultat System

MarshalRegistered() public méthode

Indicates that a marshal has successfully registered on a network.
public MarshalRegistered ( IRCMarshal marshal ) : void
marshal IRCMarshal The marshal that has registered.
Résultat void

MarshalUnregistered() public méthode

Indicates that a marshal has unregistered from a network.
public MarshalUnregistered ( IRCMarshal marshal ) : void
marshal IRCMarshal The marshal that has unregistered.
Résultat void

SetupForm() public méthode

Sets up the console page and initiates an update check.
public SetupForm ( ) : void
Résultat void