Example #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;
        }
Example #2
0
 public RoundsInitializer(RoundSchedule schedule)
 {
     _schedule = schedule;
 }
Example #3
0
 public TimeDockViewModel(RoundSchedule roundSchedule)
 {
     _roundSchedule = roundSchedule;
     roundSchedule.Timer.PropertyChanged += TimeChanged;
 }
        public AddDefaultRounds(RoundSchedule roundSchedule)
        {
            this.DataContext = new RoundsInitializer(roundSchedule);

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