Exemplo n.º 1
0
        /// <summary>
        /// Sets the previous appereance settings.
        /// </summary>
        private void SetPreviousAppereanceSettings()
        {
            string previouslySelectedTheme = RegistryManager.GetTheme();

            string[] colors = RegistryManager.GetColors();
            if (colors != null && colors.Length == 3 && previouslySelectedTheme != string.Empty)
            {
                Color currentColor = default(Color);
                currentColor = Color.FromRgb(byte.Parse(colors[0]), byte.Parse(colors[1]), byte.Parse(colors[2]));
                this.SyncThemeAndColor(previouslySelectedTheme, currentColor);
            }
            else
            {
                this.SyncThemeAndColor();
            }
        }