private void sideBar1_ItemDoubleClick(SbItemEventArgs e) { int freindID = (int)e.Item.Tag; Frm_chat f = new Frm_chat(this, this.userID, freindID); f.Show(); }
public Frm_info(Frm_chat f, int id, bool isEnable) { InitializeComponent(); this.parent_chat = f; this.isEnable = isEnable; this.ilFace = f.ilFace; this.id = id; this.db = f.db; }
private void treeViewMembers_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { int id = (int)e.Node.Tag; if (id == hostId) { return; } Frm_chat f = new Frm_chat(this, hostId, id); f.Show(); }
private void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { int freindID = (int)e.Node.Tag; if (freindID < 10000) { return; } Frm_chat f = new Frm_chat(this, this.userID, freindID); f.Show(); }
private void treeViewGroup_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { int id = (int)e.Node.Tag; if (id < 10000) { Frm_groupChat f = new Frm_groupChat(this, id); f.Show(); } else if (id < 100000 && id != userID) { Frm_chat f = new Frm_chat(this, userID, id); f.Show(); } }