|
@@ -5,6 +5,7 @@ using System.Collections.Generic;
|
|
|
using System.Collections.ObjectModel;
|
|
|
using System.CommandLine;
|
|
|
using System.Diagnostics;
|
|
|
+using System.Diagnostics.CodeAnalysis;
|
|
|
using System.Globalization;
|
|
|
using System.IO;
|
|
|
using System.Linq;
|
|
@@ -55,9 +56,11 @@ public class UICatalogApp
|
|
|
private static int _cachedScenarioIndex;
|
|
|
private static string? _cachedTheme = string.Empty;
|
|
|
private static ObservableCollection<string>? _categories;
|
|
|
+ [SuppressMessage ("Style", "IDE1006:Naming Styles", Justification = "<Pending>")]
|
|
|
private static readonly FileSystemWatcher _currentDirWatcher = new ();
|
|
|
private static ViewDiagnosticFlags _diagnosticFlags;
|
|
|
private static string _forceDriver = string.Empty;
|
|
|
+ [SuppressMessage ("Style", "IDE1006:Naming Styles", Justification = "<Pending>")]
|
|
|
private static readonly FileSystemWatcher _homeDirWatcher = new ();
|
|
|
private static bool _isFirstRunning = true;
|
|
|
private static Options _options;
|
|
@@ -406,7 +409,7 @@ public class UICatalogApp
|
|
|
_diagnosticFlags = Diagnostics;
|
|
|
|
|
|
_themeMenuItems = CreateThemeMenuItems ();
|
|
|
- _themeMenuBarItem = new ("_Themes", _themeMenuItems);
|
|
|
+ _themeMenuBarItem = new ("_Themes", _themeMenuItems!);
|
|
|
|
|
|
MenuBar menuBar = new ()
|
|
|
{
|
|
@@ -676,7 +679,7 @@ public class UICatalogApp
|
|
|
|
|
|
ColorScheme = Colors.ColorSchemes [_topLevelColorScheme];
|
|
|
|
|
|
- MenuBar!.Menus [0].Children [0].ShortcutKey = Application.QuitKey;
|
|
|
+ MenuBar!.Menus [0].Children! [0]!.ShortcutKey = Application.QuitKey;
|
|
|
|
|
|
if (StatusBar is { })
|
|
|
{
|
|
@@ -783,6 +786,7 @@ public class UICatalogApp
|
|
|
|
|
|
private void ConfigAppliedHandler (object? sender, ConfigurationManagerEventArgs? a) { ConfigChanged (); }
|
|
|
|
|
|
+ [SuppressMessage ("Style", "IDE1006:Naming Styles", Justification = "<Pending>")]
|
|
|
private MenuItem [] CreateDiagnosticFlagsMenuItems ()
|
|
|
{
|
|
|
const string OFF = "View Diagnostics: _Off";
|