private void BtnNew_Click(object sender, RoutedEventArgs e) { EditContact editor = new EditContact(); editor.OnAccept += AddNewCoctact; editor.Show(); }
private void Update_Click(object sender, RoutedEventArgs e) { Contact selected = (Contact)DGContacts.SelectedItem; EditContact editor = new EditContact(selected); editor.OnAccept += EditContact; editor.Show(); }