private void ShowExercisesWindow()
        {
            Activate?.Invoke();
            List <CheckedListExerciseItem> exercises = Sections.Where(checkBox => checkBox.IsChecked == true).OrderBy(x => x.LastUsedTime).Take(5).ToList();
            ExercisesWindow window = new ExercisesWindow(exercises);

            window.ShowDialog();
            UpdateInfo();
        }
Example #2
0
    public void Switch()
    {
        if (activeTurn)
        {
            Activate?.Invoke();
        }
        else
        {
            Deactivate?.Invoke();
        }

        activeTurn = !activeTurn;
    }
Example #3
0
 internal virtual void OnActivate(Toplevel deactivated)
 {
     Activate?.Invoke(deactivated);
 }
Example #4
0
 public void OnActivate()
 {
     activate?.Invoke(this);
 }
Example #5
0
 public void PlaceholderActivate()
 {
     Activate.Invoke();
 }
Example #6
0
        internal void Beep(int tstates)
        {
            var time = ((double)tstates / tstatesPerInterrupt) * interruptInterval;

            Activate?.Invoke(time);
        }