Пример #1
0
        private void Theme_Click(object sender, RoutedEventArgs e)
        {
            var thisButton = sender as Button;

            var SwatchColor = Swatches.FirstOrDefault(p => p.Name == thisButton.Name);

            if (SwatchColor == null)
            {
                return;
            }

            ThemeHelper.ApplyPrimary(SwatchColor);

            if (!SettingsHelper.ModifySettings("ThemeColor", SwatchColor.Name))
            {
                Failed();
                return;
            }

            Succeed();
        }