private void PrefsToolStripMenuItem_Click(object sender, EventArgs e) { var prefForm = new PrefForm(_diaryPreferences.AudioPath, _diaryPreferences.FontColor, _diaryPreferences.Color); if (prefForm.ShowDialog() == DialogResult.OK) { _diaryPreferences = prefForm.DiaryPreferences; sp = new DiarySoundPlayer(_diaryPreferences.AudioPath); ChangeColorAndFontColor(_diaryPreferences); } }
public Mainform() { InitializeComponent(); TimerForRemind.Interval = 1000; _diaryPreferences = SaveLoad.LoadPrefs(); sp = new DiarySoundPlayer(_diaryPreferences.AudioPath); _diaryTaskList = SaveLoad.LoadFromFile(); _displayedDiaryTaskList = _diaryTaskList; UpdateMainList(); ChangeColorAndFontColor(_diaryPreferences); if (_diaryTaskList.TaskList.Count == 0) { Hello(); } }