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

DisableChat() public method

public DisableChat ( Smuxi.Engine.ChatModel chat ) : void
chat Smuxi.Engine.ChatModel
return void
        public override void DisableChat(ChatModel chat)
        {
            ChatView chatView = GetChat(chat);
            if (chatView == null) {
             #if LOG4NET
                f_Logger.Warn("DisableChat(): chatView is null!");
            #endif
                return;
            }

            chatView.Disable();
        }

Usage Example

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

            MethodBase mb = Trace.GetMethodBase();

            Gtk.Application.Invoke(delegate {
                TraceRemotingCall(mb, chat);

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