예제 #1
0
        private void SaveOptionsToFile()
        {
            MainFormOptions options = new MainFormOptions();

            options.ShouldAutoClose = chkAutoClose.IsChecked.Value;

            UtilityCore.SaveOptions(options, FILE);
        }
예제 #2
0
        private void LoadOptionsFromFile()
        {
            MainFormOptions options = UtilityCore.ReadOptions <MainFormOptions>(FILE) ?? new MainFormOptions();

            chkAutoClose.IsChecked = options.ShouldAutoClose ?? false;
        }
예제 #3
0
        private void SaveOptionsToFile()
        {
            MainFormOptions options = new MainFormOptions();

            options.ShouldAutoClose = chkAutoClose.IsChecked.Value;

            UtilityCore.SaveOptions(options, FILE);
        }