Пример #1
0
        /// <summary>
        /// Main Application Window constructor
        /// </summary>
        public MainWindow()
        {
            SetupUncaughtExceptionHandlers();

            Logger.Info($"OS Info: {_osInfo}");

            UiUtils.CursorStartWait();
            MainViewModel = new MainViewModel(this);
            InitializeComponent();
            SetColorScheme(MainViewModel.AppLightColorScheme == true ? AppColorScheme.Light : AppColorScheme.Dark);

            Logger.Info("Window components initialized.");
            MainViewModel.LoadJson();
            CurrentItems = PopulateListView(lvDataBinding);
            MainViewModel.CurrentItem = CurrentItems?[0];
            UiUtils.CursorStopWait();
        }