private void SetUniformToFillStreachWallpaper() { WallpaperStreach = Stretch.UniformToFill; SaveWallpaperSetting(); WallpaperManager wm = new WallpaperManager(); wm.Init(); }
private void SetNoneStreachWallpaper() { WallpaperStreach = Stretch.None; SaveWallpaperSetting(); WallpaperManager wm = new WallpaperManager(); wm.Init(); }
private void SetFonWallpaper() { WallpaperSettingKind = WallpaperKind.Fon; WallpaperGridsInit(); WallpaperManager wm = new WallpaperManager(); wm.Init(); }
/// <summary> /// /// </summary> private void SetPictureWallpaper() { WallpaperSettingKind = WallpaperKind.Picture; WallpaperGridsInit(); WallpaperManager wm = new WallpaperManager(); wm.Init(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly(); asm.GetName(); //Если имя сборки (и версия) изменились, запускаем информационное окно if (IsNewNameAssemblie()) { InfoWindow inf = new InfoWindow(); inf.ShowDialog(); } //Properties.Settings.Default.Reset(); //LoadLastTemplate(); WallpaperManager wallpaperManager = new WallpaperManager(); wallpaperManager.Init(); }
/// <summary> /// Открытия диалога выбора Wallpaper /// </summary> private void WallpaperOpenDialog() { System.Windows.Forms.OpenFileDialog dlg = new System.Windows.Forms.OpenFileDialog(); dlg.FileName = WallpaperPath; // "Template"; // Default file name //dlg.DefaultExt = ext; // Default file extension dlg.Filter = "Image Files|*.jpg;*.gif;*.bmp;*.png;*.jpeg|All Files|*.*"; if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { WallpaperPath = dlg.FileName; SaveWallpaperSetting(); WallpaperManager wallpaperManager = new WallpaperManager(); wallpaperManager.RefreshPicture(); wallpaperManager.Init(); //_SaveTemplate(dlg.FileName); } }