コード例 #1
0
ファイル: chatroom.cs プロジェクト: swordstyle/AOL_4.0_Emu
        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();
        }
コード例 #2
0
 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();
     }
 }