コード例 #1
0
        private void MenuItemCycling_Click(object sender, RoutedEventArgs e)
        {
            CyclingSessionWindow rw = new CyclingSessionWindow(m);

            rw.Show();
            Close();
        }
コード例 #2
0
 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
 }