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

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