Beispiel #1
0
        public bool SetBaseColorScheme(string color)
        {
            if (_baseColorScheme.EqualsIgnoreCase(color) || !GetAvailableBaseColorSchemes().Contains(color))
            {
                return(false);
            }

            _baseColorScheme = color;

            BaseColorSchemeChanged?.Invoke(this, EventArgs.Empty);

            return(true);
        }
Beispiel #2
0
        public bool SetBaseColorScheme(string scheme)
        {
            if (_baseColorScheme.EqualsIgnoreCase(scheme) || !GetAvailableBaseColorSchemes().Contains(scheme))
            {
                return(false);
            }

            Log.Info($"Setting base color scheme '{scheme}'");

            _baseColorScheme = scheme;

            BaseColorSchemeChanged?.Invoke(this, EventArgs.Empty);

            return(true);
        }