예제 #1
0
        private void BtnNew_Click(object sender, RoutedEventArgs e)
        {
            EditContact editor = new EditContact();

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

            editor.OnAccept += EditContact;
            editor.Show();
        }