コード例 #1
0
        public void SaveConfigurationToFile()
        {
            var configurationFileManager = ConfigurationFileManagementSystem.GetInstance();

            var configurations = new Configurations();

            configurations.PomodoroConfig = (PomodoroConfig)pomodoroConfig;

            configurationFileManager.Save(configurations, App.ConfigurationFileName);
        }
コード例 #2
0
        public void LoadConfigurationFromFile()
        {
            var configurationFileManager = ConfigurationFileManagementSystem.GetInstance();
            var configurations           = configurationFileManager.Load <Configurations>(App.ConfigurationFileName);

            if (configurations == null)
            {
                return;
            }

            pomodoroConfig = configurations.PomodoroConfig;
        }