private void usersListView_DoubleClick(object sender, EventArgs e) { instant_message im = new instant_message(usersListView.SelectedItems[0].Text.ToString()); im.Owner = this; im.MdiParent = MdiParent; im.Tag = usersListView.SelectedItems[0].Text.ToString(); im.Show(); }
private void buddyTreeView_MouseDoubleClick(object sender, MouseEventArgs e) { if (buddyTreeView.SelectedNode.Text == null) { return; } if (!chat.buddyStatus.ContainsKey(buddyTreeView.SelectedNode.Text)) { return; } if (chat.buddyStatus[buddyTreeView.SelectedNode.Text] == true) // have to be online to IM { instant_message im = new instant_message(buddyTreeView.SelectedNode.Text); im.Owner = this; im.MdiParent = MdiParent; im.Tag = buddyTreeView.SelectedNode.Text; im.Show(); } }