Exemple #1
0
 private void phoneslistView_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (phoneslistView.SelectedItems != null &&
         phoneslistView.SelectedItems.Count > 0)
     {
         ListViewItem tempItem = phoneslistView.SelectedItems[0];
         string tempUserName = tempItem.SubItems[1].Text;
         int tempIndex = GetPhoneUserIndex(tempUserName);
         if (tempIndex >= 0)
         {
             UserClass tempUser = (UserClass)(PhoneUsersArray[tempIndex]);
             if (tempUser != null)
             {
                 PhoneVideoForm form = new PhoneVideoForm(tempUser);
                 this.AddOwnedForm(form);
                 form.Show();
             }
         }
     }
 }