Exemple #1
0
        private void myMenuPhone2PhoneCallToolStripButton_Click(object sender, EventArgs e)
        {
            NTContact selectedContact;
            if (myRosterListTreeView.SelectedNode != null)
            {
                if (myRosterListTreeView.SelectedNode.Level == 1)
                {

                    ContactList foundContactsList = myContactsBook.List.getCandidatesForJabberID(myRosterListTreeView.SelectedNode.Text);
                    if (foundContactsList.Count > 0)
                    {
                        selectedContact = (NTContact)foundContactsList[0];
                        myPhone2PhoneWindow = new Phone2PhoneWindow(selectedContact);
                        myPhone2PhoneWindow.FormClosing += new FormClosingEventHandler(myPhone2PhoneWindow_FormClosing);
                        myPhone2PhoneWindow.Show();

                    }
                }
            }
        }
Exemple #2
0
 private void callPhone2PhoneToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     RadListBoxItem selectedItem = (RadListBoxItem)myContactsListBox.SelectedItem;
     if (selectedItem != null)
     {
         NTContact selectedContact = (NTContact)selectedItem.Tag;
         myPhone2PhoneWindow = new Phone2PhoneWindow(selectedContact);
         myPhone2PhoneWindow.FormClosing += new FormClosingEventHandler(myPhone2PhoneWindow_FormClosing);
         myPhone2PhoneWindow.Show();
     }
 }