Esempio n. 1
0
        private async void ThemeRename(object sender, RoutedEventArgs e)
        {
            string OName = SelectedTheme.Name;

            Dialogs.Rename R = new Dialogs.Rename(SelectedTheme);
            await Popups.ShowDialog(R);

            if (R.Canceled)
            {
                return;
            }

            Manager.Save(SelectedTheme);
            Manager.Remove(OName);
        }
Esempio n. 2
0
        private async void ColorList_ItemClick(object sender, ItemClickEventArgs e)
        {
            ColorItem C = e.ClickedItem as ColorItem;

            Dialogs.ColorPicker Picker = new Dialogs.ColorPicker(C);
            await Popups.ShowDialog(Picker);

            if (Picker.Canceled)
            {
                return;
            }

            C.ChangeColor(Picker.UserChoice);

            CurrentSet.SetColor(C);

            global::GR.GSystem.ThemeManager Mgr = new global::GR.GSystem.ThemeManager();
            Mgr.Remove(CurrentSet.Name);
            Mgr.Save(CurrentSet);
        }