private void Spare_parts_Click(object sender, RoutedEventArgs e)
 {
     Visibility = Visibility.Collapsed;
     var w5 = new Window5();
     w5.Closed += (sender2, e2) =>
     {
        Visibility = Visibility.Visible;
     };
     w5.ShowDialog();
 }
 private void Button_Click_2(object sender, RoutedEventArgs e)
 {
     Visibility = Visibility.Collapsed;
     var wind = new Window5();
     wind.Closed += (sender2, e2) =>
     {
         Visibility = Visibility.Visible;
     };
     wind.ShowDialog();
 }