private void toolStripDropDownButton4_ButtonClick(object sender, EventArgs e) { frm_msg_view frmMsgView; if (Class1.formMsgViewPrivatePool.ContainsKey(userIdChat)) { frmMsgView = Class1.formMsgViewPrivatePool[userIdChat]; frmMsgView.Activate(); } else { frmMsgView = new frm_msg_view(userIdChat, "private"); Class1.formMsgViewPrivatePool.Add(userIdChat, frmMsgView); frmMsgView.Show(); } }
private void toolStripDropDownButton4_ButtonClick(object sender, EventArgs e) { frm_msg_view frmMsgView; if (Class1.formMsgViewGroupPool.ContainsKey(groupChat.Id)) { frmMsgView = Class1.formMsgViewGroupPool[groupChat.Id]; frmMsgView.Activate(); } else { frmMsgView = new frm_msg_view(groupChat.Id, "group"); Class1.formMsgViewGroupPool.Add(groupChat.Id, frmMsgView); frmMsgView.Show(); } }