C# Class Examples.ExamplesChat.WPF.ChatAppWPF

All NetworkComms.Net implementation can be found here and in ChatAppBase
Inheritance: ChatAppBase
Afficher le fichier Open project: MarcFletcher/NetworkComms.Net Class Usage Examples

Méthodes publiques

Méthode Description
AppendLineToChatHistory ( System style, string text, bool addNewLine ) : void

Append the provided message to the chatBox text box including the provided formatting.

AppendLineToChatHistory ( string message ) : void

Append the provided message to the chatBox text box.

ChatAppWPF ( System.Windows.Controls.TextBlock chatHistory, ScrollViewer scroller, TextBox messagesFrom, TextBox messagesText ) : System

Constructor for the WPF chat app.

ClearChatHistory ( ) : void

Clear the chat history window

ClearInputLine ( ) : void

Clear the text message input box

RefreshMessagesFromBox ( ) : void

Refresh the messagesFrom text box using the recent message history.

ShowMessage ( string message ) : void

Show a message as an alternative to adding text to chat history

Méthodes protégées

Méthode Description
HandleIncomingChatMessage ( PacketHeader header, Connection connection, ChatMessage incomingMessage ) : void

Performs whatever functions we might so desire when we receive an incoming ChatMessage

Method Details

AppendLineToChatHistory() public méthode

Append the provided message to the chatBox text box including the provided formatting.
public AppendLineToChatHistory ( System style, string text, bool addNewLine ) : void
style System
text string
addNewLine bool
Résultat void

AppendLineToChatHistory() public méthode

Append the provided message to the chatBox text box.
public AppendLineToChatHistory ( string message ) : void
message string
Résultat void

ChatAppWPF() public méthode

Constructor for the WPF chat app.
public ChatAppWPF ( System.Windows.Controls.TextBlock chatHistory, ScrollViewer scroller, TextBox messagesFrom, TextBox messagesText ) : System
chatHistory System.Windows.Controls.TextBlock
scroller System.Windows.Controls.ScrollViewer
messagesFrom System.Windows.Controls.TextBox
messagesText System.Windows.Controls.TextBox
Résultat System

ClearChatHistory() public méthode

Clear the chat history window
public ClearChatHistory ( ) : void
Résultat void

ClearInputLine() public méthode

Clear the text message input box
public ClearInputLine ( ) : void
Résultat void

HandleIncomingChatMessage() protected méthode

Performs whatever functions we might so desire when we receive an incoming ChatMessage
protected HandleIncomingChatMessage ( PacketHeader header, Connection connection, ChatMessage incomingMessage ) : void
header NetworkCommsDotNet.PacketHeader The PacketHeader corresponding with the received object
connection NetworkCommsDotNet.Connections.Connection The Connection from which this object was received
incomingMessage ChatMessage The incoming ChatMessage we are after
Résultat void

RefreshMessagesFromBox() public méthode

Refresh the messagesFrom text box using the recent message history.
public RefreshMessagesFromBox ( ) : void
Résultat void

ShowMessage() public méthode

Show a message as an alternative to adding text to chat history
public ShowMessage ( string message ) : void
message string
Résultat void