void recentListBox1_ChatRecordClicked(string unitID, bool isGroup) { ChatRecordForm form = null; if (isGroup) { GGGroup group = this.globalUserCache.GetGroup(unitID); form = new ChatRecordForm(GlobalResourceManager.RemotingService, GlobalResourceManager.ChatMessageRecordPersister, group.GetIDName(), this.globalUserCache.CurrentUser.GetIDName(), this.globalUserCache); form.Show(); } else { GGUser friend = this.globalUserCache.GetUser(unitID); form = new ChatRecordForm(GlobalResourceManager.RemotingService, GlobalResourceManager.ChatMessageRecordPersister, this.globalUserCache.CurrentUser.GetIDName(), friend.GetIDName()); } form.Show(); }
void groupListBox_ChatRecordClicked(IGroup group) { ChatRecordForm form = new ChatRecordForm(GlobalResourceManager.RemotingService, GlobalResourceManager.ChatMessageRecordPersister, group.GetIDName(), this.globalUserCache.CurrentUser.GetIDName(), this.globalUserCache); form.Show(); }
void friendListBox1_ChatRecordClicked(IUser friend) { ChatRecordForm form = new ChatRecordForm(GlobalResourceManager.RemotingService, GlobalResourceManager.ChatMessageRecordPersister, this.globalUserCache.CurrentUser.GetIDName(), friend.GetIDName()); form.Show(); }
void recentListBox1_ChatRecordClicked(string unitID ,bool isGroup) { ChatRecordForm form = null; if (isGroup) { GGGroup group = this.globalUserCache.GetGroup(unitID); form = new ChatRecordForm(GlobalResourceManager.RemotingService, GlobalResourceManager.ChatMessageRecordPersister, group.GetIDName(), this.globalUserCache.CurrentUser.GetIDName(), this.globalUserCache); form.Show(); } else { GGUser friend = this.globalUserCache.GetUser(unitID); form = new ChatRecordForm(GlobalResourceManager.RemotingService, GlobalResourceManager.ChatMessageRecordPersister, this.globalUserCache.CurrentUser.GetIDName(), friend.GetIDName()); } form.Show(); }
private void toolStripButton1_Click(object sender, EventArgs e) { ChatRecordForm form = new ChatRecordForm(GlobalResourceManager.RemotingService, GlobalResourceManager.ChatMessageRecordPersister, this.currentGroup.GetIDName(), this.mine.GetIDName(), this.globalUserCache); form.Show(); }