void UpdateDisplayOptions() { var displayOptions = Common.Instance.DisplayOptions; var scheme = ColorTheme.GetHighlightingScheme(displayOptions.ColorTheme); this._currentHighlightDefinition = ColorTheme.GetDefinition(scheme); string fontFamily = "Consolas"; if (FontHelpers.IsFontFamilyExist(displayOptions.FontName)) { fontFamily = displayOptions.FontName; } this.BytecodeListing.FontFamily = new FontFamily(fontFamily); this.BytecodeListing.FontSize = displayOptions.FontSize; this.BytecodeListing.ShowLineNumbers = displayOptions.LineNumbers; this.BytecodeListing.SyntaxHighlighting = this._currentHighlightDefinition; }