Example #1
0
 private void Contact_DeleteClick(object sender, RoutedEventArgs e)
 {
     if (messengerClient.IsContactAlreadyExist(Account, (sender as Chip).Tag as AccountDTO))
     {
         messengerClient.DeleteContact(Account, (sender as Chip).Tag as AccountDTO);
         panelContacts.Children.Remove(sender as Chip);
     }
 }
Example #2
0
 private void DeleteContact_Click(object sender, RoutedEventArgs e)
 {
     if (messengerClient.IsContactAlreadyExist(MainAccount, Contact))
     {
         messengerClient.DeleteContact(MainAccount, Contact);
         WindowOwner.FillContacts(MainAccount);
         btnDelete.IsEnabled = false;
         btnAdd.IsEnabled    = true;
     }
 }