private void AddRide_Click(object sender, RoutedEventArgs e) { Add_Ride add_Ride = new Add_Ride(); add_Ride.Show(); this.Close(); }
//przycisk powrotu private void Button_Click(object sender, RoutedEventArgs e) { MainWindow mainWindow = new MainWindow(); Add_Ride addRide = new Add_Ride(); mainWindow.Show(); this.Close(); }