private void HandleHotKey() { // opens the default theme if (OptionsData.EnableDefaultThemeHotkey) { WallpaperData.SaveData(WallpaperPathing.ActiveWallpaperTheme); WallpaperData.LoadDefaultTheme(); } }
private void buttonSaveTheme_Click(object sender, EventArgs e) { using (SaveFileDialog dialog = new SaveFileDialog()) { dialog.Title = "Save data to json"; dialog.Filter = "Wallpaper Data JSON (*.json) | *.json"; if (dialog.ShowDialog() == DialogResult.OK) { WallpaperData.SaveData(dialog.FileName); } } }
private void buttonUpdateTheme_Click(object sender, EventArgs e) { WallpaperData.EvaluateImageFolders(); // scans for new images WallpaperData.SaveData(WallpaperPathing.ActiveWallpaperTheme); }