C# Класс Yaircc.UI.IRCTabPage

Represents a TabPage that can communicate with an IRC server
Наследование: System.Windows.Forms.TabPage
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ChangeTreeNodeState void
HandleCollapseAndExpansion void
Initialise void
InitialiseWebView void
RemoveUserFromList bool
RemoveUserFromTopLevelNodes bool
SetSplashText void
SetupConsoleContent void
UserTreeView_AfterCollapse void
UserTreeView_AfterExpand void
WebView_PreviewKeyDown void
WebView_PropertyChanged void

Открытые методы

Метод Описание
AddUserToList ( IRCUser user ) : TreeNode

Adds a user to the tree view list.

AddUserToList ( IRCUser user, bool refresh ) : void

Adds a user to the tree view list.

AppendMessage ( string command, string source, string payload, MessageType type ) : void

Appends a message to the tab's browser control and transforms the payload accordingly to show custom font styles / colours.

AppendMessage ( string command, string source, string payload, MessageType type, string>.Func transform ) : void

Appends a message to the tab's browser control.

ClearLog ( ) : void

Clear the message log.

FlushQueuedMessages ( ) : void

Flush queued messages to the chat log.

IRCTabPage ( MainForm owningForm, string name, string text, IRCTabType type ) : System

Initialises a new instance of the IRCTabPage class.

ListEmoticons ( ) : void

Lists the supported emoticons in the tab.

LoadTheme ( string path ) : void

Load a theme into the web browser control.

RefreshTreeNodeCollapseState ( ) : void

Refreshes the collapse state of each tree node.

RemoveUserFromList ( IRCUser user ) : void

Removes a user from the user tree view.

ScrollToBottom ( ) : void

Scrolls to the bottom of the chat log.

SortByMode ( bool sortByMode ) : void

Sets the sorting mode of the user tree view.

ToggleGrouping ( ) : void

Toggles whether or not grouping is enabled.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the System.Windows.Forms.Control and its child controls and optionally releases the managed resources.

Приватные методы

Метод Описание
ChangeTreeNodeState ( string name, bool collapsed ) : void

Change the collapsed state of a node in UserTreeView.

HandleCollapseAndExpansion ( TreeNode node ) : void

Update the fields that store the collapse state of the various "group nodes".

Initialise ( ) : void

Initialise the required components

InitialiseWebView ( ) : void

Initialise the WebView control

RemoveUserFromList ( IRCUser user, TreeNodeCollection nodes ) : bool

Removes a user from the user tree view.

RemoveUserFromTopLevelNodes ( IRCUser user ) : bool

Removes a user from the top level nodes in UserTreeView.

SetSplashText ( ) : void

Set the splash text that is shown at the top of a tab's browser control

SetupConsoleContent ( ) : void

Sets up the default content for the console tab.

UserTreeView_AfterCollapse ( object sender, TreeViewEventArgs e ) : void

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

UserTreeView_AfterExpand ( object sender, TreeViewEventArgs e ) : void

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

WebView_PreviewKeyDown ( object sender, PreviewKeyDownEventArgs e ) : void

Handles the PreviewKeyDown event of System.Windows.Forms.WebBrowser.

WebView_PropertyChanged ( object sender, System e ) : void

Handles the PropertyChanged event of CefSharp.WinForms.WebView.

Описание методов

AddUserToList() публичный Метод

Adds a user to the tree view list.
public AddUserToList ( IRCUser user ) : TreeNode
user IRCUser The user to add.
Результат System.Windows.Forms.TreeNode

AddUserToList() публичный Метод

Adds a user to the tree view list.
public AddUserToList ( IRCUser user, bool refresh ) : void
user IRCUser The user to add.
refresh bool A value indicating whether or not to refresh the sorting.
Результат void

AppendMessage() публичный Метод

Appends a message to the tab's browser control and transforms the payload accordingly to show custom font styles / colours.
public AppendMessage ( string command, string source, string payload, MessageType type ) : void
command string The command that invoked the call.
source string The source of the message.
payload string The message's payload.
type MessageType The type of message.
Результат void

AppendMessage() публичный Метод

Appends a message to the tab's browser control.
public AppendMessage ( string command, string source, string payload, MessageType type, string>.Func transform ) : void
command string The command that invoked the call.
source string The source of the message.
payload string The message's payload.
type MessageType The type of message.
transform string>.Func A delegate that will be called to transform the payload content before appending.
Результат void

ClearLog() публичный Метод

Clear the message log.
public ClearLog ( ) : void
Результат void

Dispose() защищенный Метод

Releases the unmanaged resources used by the System.Windows.Forms.Control and its child controls and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

FlushQueuedMessages() публичный Метод

Flush queued messages to the chat log.
public FlushQueuedMessages ( ) : void
Результат void

IRCTabPage() публичный Метод

Initialises a new instance of the IRCTabPage class.
public IRCTabPage ( MainForm owningForm, string name, string text, IRCTabType type ) : System
owningForm MainForm The form that the tab page is displayed on.
name string The name of the tab page.
text string The text to display in the caption.
type IRCTabType The type of IRC entity being represented.
Результат System

ListEmoticons() публичный Метод

Lists the supported emoticons in the tab.
public ListEmoticons ( ) : void
Результат void

LoadTheme() публичный Метод

Load a theme into the web browser control.
public LoadTheme ( string path ) : void
path string The full path of the theme to load.
Результат void

RefreshTreeNodeCollapseState() публичный Метод

Refreshes the collapse state of each tree node.
public RefreshTreeNodeCollapseState ( ) : void
Результат void

RemoveUserFromList() публичный Метод

Removes a user from the user tree view.
public RemoveUserFromList ( IRCUser user ) : void
user IRCUser The user to remove.
Результат void

ScrollToBottom() публичный Метод

Scrolls to the bottom of the chat log.
public ScrollToBottom ( ) : void
Результат void

SortByMode() публичный Метод

Sets the sorting mode of the user tree view.
public SortByMode ( bool sortByMode ) : void
sortByMode bool A value indicating whether or not to sort by mode.
Результат void

ToggleGrouping() публичный Метод

Toggles whether or not grouping is enabled.
public ToggleGrouping ( ) : void
Результат void