AnfiniL.SqlExpressProfiler.VisualStyles.DefaultColorTable.DisplayInformation.SetScheme C# (CSharp) Method

SetScheme() private static method

private static SetScheme ( ) : void
return void
            private static void SetScheme()
            {
                isLunaTheme = false;
                if (VisualStyleRenderer.IsSupported)
                {
                    colorScheme = VisualStyleInformation.ColorScheme;

                    if (!VisualStyleInformation.IsEnabledByUser)
                    {
                        return;
                    }
                    StringBuilder builder1 = new StringBuilder(0x200);
                    GetCurrentThemeName(builder1, builder1.Capacity, null, 0, null, 0);
                    string text1 = builder1.ToString();
                    isLunaTheme =
                        string.Equals("luna.msstyles", Path.GetFileName(text1),
                                      StringComparison.InvariantCultureIgnoreCase);
                }
                else
                {
                    colorScheme = null;
                }
            }