示例#1
0
文件: ChatForm.cs 项目: twd2/chat
 private void EnsureCanvas()
 {
     if (canvasForm == null || canvasForm.IsDisposed)
     {
         canvasForm = new GraphicsForm(buddyUid);
         UpdateTitle();
     }
     canvasForm.Show();
 }
示例#2
0
文件: ChatForm.cs 项目: twd2/chat
        private void ChatForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (canvasForm != null && !canvasForm.IsDisposed)
            {
                canvasForm.Close();
                canvasForm = null;
            }
            ChatForm _;

            Program.chatFormMap.TryRemove(buddyUid, out _);
        }