public void LoadSettings() { pomodoro = Properties.Settings.Default.Pomodoro; shortBreak = Properties.Settings.Default.ShortBreak; longBreak = Properties.Settings.Default.LongBreak; alwaysOnTop = Properties.Settings.Default.AlwaysOnTop; Topmost = alwaysOnTop; TimeType lastType = (TimeType)Enum.Parse(TimeType.GetType(), Properties.Settings.Default.LastType); SetType(lastType); ResetTimer(); }