コード例 #1
0
 private void Init()
 {
     _timerService = new TimerService();
     _timerService.Add(OnTimerTick, OnTimerRestart, () =>
     {
         // Add change toast
     });
     BaseStatesStore.Init(DefaultWorkState);
     ActivityDataGrid.FormDataGrid();
     AddLanguageChangedEvent(() => ActivityDataGrid.SetHeaders());
     ActivityManager.ToList(list =>
                            list.ForEach(activity => ActivityDataGrid.AddRow(activity.Duration, NoConversion, activity.Type)));
     TimerStatesStore.AddStateChangedEvent(ButtonVisibilityArea);
     ButtonVisibilityArea();
 }