Exemplo n.º 1
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);
        }
Exemplo 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);
        }