private void butAddClient_Click(object sender, RoutedEventArgs e) { var dlg = new AddClients(false, -1); if (dlg.ShowDialog() == true) { MessageBox.Show("Очевидно, добавлена строка"); } }
private void butUpClient_Click(object sender, RoutedEventArgs e) { Client t = Clients.SelectedItem as Client; var dlg = new AddClients(true, t.ID); if (dlg.ShowDialog() == true) { MessageBox.Show("Очевидно, добавлена строка"); } }