private void addBtn(object sender, RoutedEventArgs e) { AddTour ad = new AddTour(null); ad.Visibility = Visibility.Visible; this.Close(); }
private void changeBtn(object sender, RoutedEventArgs e) { if (DGridTours.SelectedItem == null) { MessageBox.Show("Выберите запись"); return; } var std = DGridTours.SelectedItem as Tour; AddTour fur = new AddTour(std); fur.Visibility = Visibility.Visible; this.Close(); }