C# 클래스 Examples.ExamplesChat.WPF.ChatAppWPF

All NetworkComms.Net implementation can be found here and in ChatAppBase
상속: ChatAppBase
파일 보기 프로젝트 열기: MarcFletcher/NetworkComms.Net 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
HandleIncomingChatMessage ( PacketHeader header, Connection connection, ChatMessage incomingMessage ) : void

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

메소드 상세

AppendLineToChatHistory() 공개 메소드

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
리턴 void

AppendLineToChatHistory() 공개 메소드

Append the provided message to the chatBox text box.
public AppendLineToChatHistory ( string message ) : void
message string
리턴 void

ChatAppWPF() 공개 메소드

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
리턴 System

ClearChatHistory() 공개 메소드

Clear the chat history window
public ClearChatHistory ( ) : void
리턴 void

ClearInputLine() 공개 메소드

Clear the text message input box
public ClearInputLine ( ) : void
리턴 void

HandleIncomingChatMessage() 보호된 메소드

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
리턴 void

RefreshMessagesFromBox() 공개 메소드

Refresh the messagesFrom text box using the recent message history.
public RefreshMessagesFromBox ( ) : void
리턴 void

ShowMessage() 공개 메소드

Show a message as an alternative to adding text to chat history
public ShowMessage ( string message ) : void
message string
리턴 void