public void SaveConfigurationToFile() { var configurationFileManager = ConfigurationFileManagementSystem.GetInstance(); var configurations = new Configurations(); configurations.PomodoroConfig = (PomodoroConfig)pomodoroConfig; configurationFileManager.Save(configurations, App.ConfigurationFileName); }
public void LoadConfigurationFromFile() { var configurationFileManager = ConfigurationFileManagementSystem.GetInstance(); var configurations = configurationFileManager.Load <Configurations>(App.ConfigurationFileName); if (configurations == null) { return; } pomodoroConfig = configurations.PomodoroConfig; }