Smuxi.Frontend.Gnome.ChatViewManager.AddChat C# (CSharp) Method

AddChat() public method

This method is thread safe.
public AddChat ( Smuxi.Engine.ChatModel chat ) : void
chat Smuxi.Engine.ChatModel
return void
        public override void AddChat(ChatModel chat)
        {
            if (chat == null) {
                throw new ArgumentNullException("chat");
            }

            SyncManager.QueueAdd(chat);
        }

Usage Example

コード例 #1
0
ファイル: GnomeUI.cs プロジェクト: shubhtr/smuxi
        public void AddChat(ChatModel chat)
        {
            TraceRemotingCall(chat);

            try {
                _ChatViewManager.AddChat(chat);
            } catch (Exception ex) {
                Frontend.ShowException(ex);
            }
        }