Ejemplo n.º 1
0
 private void saveButton_Click(object sender, EventArgs e)
 {
     wallpaperMonsterConfiguration.ChangePeriod(periodSettings.Value);
     wallpaperMonsterConfiguration.ChangeCategory(Convert.ToString(categoryComboBox.SelectedValue));
     wallpaperMonsterConfiguration.ChangeLockScreen(lockScreenCheckBox.Checked);
     wallpaperMonsterConfiguration.ChangeWallpaper(wallpaperCheckBox.Checked);
     wallpaperMonsterConfiguration.Save();
     wallpaperMonsterTimer.ChangeTimerPeriod(wallpaperMonsterConfiguration.FindPeriod());
 }
Ejemplo n.º 2
0
 public SettingsForm()
 {
     InitializeComponent();
     wallpaperMonsterConfiguration = new WallpaperMonsterConfiguration();
     wallpaperMonsterService       = new WallpaperMonsterService(wallpaperMonsterConfiguration, ScreenResolution.findScreenResolution(this));
     wallpaperMonsterTimer         = new WallpaperMonsterTimer(wallpaperMonsterService);
     periodSettings.Value          = wallpaperMonsterConfiguration.FindPeriodDecimal();
     wallpaperCheckBox.Checked     = wallpaperMonsterConfiguration.FindShouldChangeWallpaper();
     lockScreenCheckBox.Checked    = wallpaperMonsterConfiguration.FindShouldChangeLockScreen();
     wallpaperMonsterTimer.ChangeTimerPeriod(wallpaperMonsterConfiguration.FindPeriod());
     prepareCategoryCombobox();
 }