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(); }
public void Switch() { if (activeTurn) { Activate?.Invoke(); } else { Deactivate?.Invoke(); } activeTurn = !activeTurn; }
internal virtual void OnActivate(Toplevel deactivated) { Activate?.Invoke(deactivated); }
public void OnActivate() { activate?.Invoke(this); }
public void PlaceholderActivate() { Activate.Invoke(); }
internal void Beep(int tstates) { var time = ((double)tstates / tstatesPerInterrupt) * interruptInterval; Activate?.Invoke(time); }