Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();

            _roundSchedule = new RoundSchedule();
            this.DataContext = _roundSchedule;
            this.AddTimeRangeColumn(ProgramTexts.RoundTime, "RoundTime");
            this.AddTimeRangeColumn(ProgramTexts.RestTime, "RestTime");

            this.InitializeRounds.Click += InitializeRoundsClick;
            this.Settings.Click += ShowSettings;
            this.ShowTable.Click += ShowTableOnClick;
        }
 public RoundsInitializer(RoundSchedule schedule)
 {
     _schedule = schedule;
 }
 public TimeDockViewModel(RoundSchedule roundSchedule)
 {
     _roundSchedule = roundSchedule;
     roundSchedule.Timer.PropertyChanged += TimeChanged;
 }
        public AddDefaultRounds(RoundSchedule roundSchedule)
        {
            this.DataContext = new RoundsInitializer(roundSchedule);

            InitializeComponent();
        }
 public TimeDockViewModel(RoundSchedule roundSchedule)
 {
     _roundSchedule = roundSchedule;
     roundSchedule.Timer.PropertyChanged += TimeChanged;
 }
 public RoundsInitializer(RoundSchedule schedule)
 {
     _schedule = schedule;
 }