private void Button_Click(object sender, RoutedEventArgs e) { WindowTest win2 = new WindowTest(); win2.Show(); e.Handled = true; Datenverwaltung.GesamteAuswahlLoeschen(); if (status == modusSatus.easy) { _easyMod.DisplaySearchResults(); _easyMod.RemoveDruckFromUi(); //uiGrMain.Children.Remove(_easyMod); _proMod.AddDruck2Ui(); //uiGrMain.Children.Add(_proMod); //uiLbModus.Content = "Pro Mode"; status = modusSatus.pro; } else { _proMod.DisplaySearchResults(); _proMod.RemoveDruckFromUi(); //uiGrMain.Children.Remove(_proMod); _easyMod.AddDruck2Ui(); //uiGrMain.Children.Add(_easyMod); //uiLbModus.Content = "Easy Mode"; status = modusSatus.easy; } }
public MainWindow() { Datenverwaltung.Initialize(); InitializeComponent(); UcDrucken druck = new UcDrucken(); _proMod = new ProMod(druck); Grid.SetRow(_proMod, 1); _easyMod = new EasyMod(druck); Grid.SetRow(_easyMod, 1); _easyMod.AddDruck2Ui(); uiGrMain.Children.Add(_easyMod); status = modusSatus.easy; }