private void SetLabelFontWeights() { Label boldLabel = null; PomodoroBaseState rulingState = (m_Controller?.State as Paused)?.PreviousState ?? m_Controller?.State; if (rulingState is Idle) { boldLabel = FocusOnLabel; } if (rulingState is LazerFocused) { boldLabel = LazerFocusedTimeLabel; } if (rulingState is ProgressChecking) { boldLabel = ProgressCheckingLabel; } if (rulingState is Break) { boldLabel = BreakTimeLabel; } FocusOnLabel.FontWeight = FontWeights.Normal; LazerFocusedTimeLabel.FontWeight = FontWeights.Normal; ProgressCheckingLabel.FontWeight = FontWeights.Normal; BreakTimeLabel.FontWeight = FontWeights.Normal; if (boldLabel != null) { boldLabel.FontWeight = FontWeights.Bold; } }
private void InitializeState() { State = new Idle(); }