Smuxi.Frontend.Gnome.ChatView.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public override void Dispose()
        {
            Trace.Call();

            Dispose(true);
            base.Dispose();
        }

Same methods

ChatView::Dispose ( bool disposing ) : void

Usage Example

Example #1
0
        public override void RemoveChat(ChatModel chat)
        {
            ChatView chatView = GetChat(chat);

            if (chatView == null)
            {
 #if LOG4NET
                f_Logger.Warn("RemoveChat(): chatView is null!");
#endif
                return;
            }

            f_Notebook.RemovePage(f_Notebook.PageNum(chatView));
            TreeView.Remove(chatView);
            f_Chats.Remove(chatView);
            SyncManager.Remove(chat);
            SyncedChats.Remove(chatView);

            if (ChatRemoved != null)
            {
                ChatRemoved(this, new ChatViewManagerChatRemovedEventArgs(chatView));
            }

            chatView.Dispose();
        }