private void Exit_Click(object sender, RoutedEventArgs e) { Lic win = new Lic(); win.row = row; win.Show(); this.Close(); }
private void LicOpen_Click(object sender, RoutedEventArgs e) { if (DriverDG.SelectedIndex != -1) { Lic win = new Lic(); win.row = DriverDG.SelectedItem as DataRowView; win.Show(); this.Close(); } else { MessageBox.Show("Не выбран водитель!"); } }