private void SaveOptionsToFile() { MainFormOptions options = new MainFormOptions(); options.ShouldAutoClose = chkAutoClose.IsChecked.Value; UtilityCore.SaveOptions(options, FILE); }
private void LoadOptionsFromFile() { MainFormOptions options = UtilityCore.ReadOptions <MainFormOptions>(FILE) ?? new MainFormOptions(); chkAutoClose.IsChecked = options.ShouldAutoClose ?? false; }