Exemple #1
0
        private void ButtonCloseAll_Click(object sender, RoutedEventArgs e)
        {
            SetupDesktop.CloseAllWallpapers();

            foreach (var item in displayLBItems)
            {
                item.FileName = null;
                item.FilePath = null;
            }
            //displayLBItems.Clear();
            //UpdateDisplayListBox();
        }
Exemple #2
0
        private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (displayLayoutSelect.SelectedIndex == -1)
            {
                return;
            }

            SaveData.config.WallpaperArrangement = (SaveData.WallpaperArrangement)displayLayoutSelect.SelectedIndex;
            SaveData.SaveConfig();

            //close all currently running wp's & reset ui
            SetupDesktop.CloseAllWallpapers();
            foreach (var item in displayLBItems)
            {
                item.FileName = null;
                item.FilePath = null;
            }
        }