private void ToJoinGroup() { JoinGroupForm form = new JoinGroupForm(this.rapidPassiveEngine, this); if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.globalUserCache.CurrentUser.JoinGroup(form.GroupID); GGGroup group = this.globalUserCache.GetGroup(form.GroupID); this.groupListBox.AddGroup(group); GroupChatForm groupChatForm = this.GetGroupChatForm(group.ID); groupChatForm.AppendSysMessage("您已经成功加入群,可以开始聊天了..."); groupChatForm.Show(); groupChatForm.Focus(); } }
private void ToJoinGroup() { JoinGroupForm form = new JoinGroupForm(this.rapidPassiveEngine,this); if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.globalUserCache.CurrentUser.JoinGroup(form.GroupID); GGGroup group = this.globalUserCache.GetGroup(form.GroupID); this.groupListBox.AddGroup(group); GroupChatForm groupChatForm = this.GetGroupChatForm(group.ID); groupChatForm.AppendSysMessage("您已经成功加入群,可以开始聊天了..."); groupChatForm.Show(); groupChatForm.Focus(); } }