private void MenuItemCycling_Click(object sender, RoutedEventArgs e) { CyclingSessionWindow rw = new CyclingSessionWindow(m); rw.Show(); Close(); }
public CyclingSessionAddWindow(TrainingManager trainingmg, CyclingSessionWindow parent) { InitializeComponent(); m = trainingmg; this.parent = parent; DatePickerCycling.BlackoutDates.Add(new CalendarDateRange(DateTime.Now.AddDays(1), DateTime.MaxValue)); trainingTypeCyclingSession.ItemsSource = Enum.GetNames(typeof(TrainingType)); // insert trainingtypes typeFietsListBox.ItemsSource = Enum.GetNames(typeof(BikeType)); //Insert biketypes }