private static void ShowWindows()
        {
            if (ScreenManager.Singleton().Has2Screens)
            {
                LockDisplayWindow.Show();
            }

            MainWnd.Show();
        }
        public void Application_Startup(object sender, StartupEventArgs e)
        {
            try
            {
                log4net.Config.XmlConfigurator.Configure();

                Logger.Info("Start seanse in VrManager!!!!!");
                var a = App.Repository.Setting;
            }
            catch (Exception ex)
            {
                App.Logger.Error($"exeption {ex.Message} (Пожалуста установите Microsoft SQL Server Compact 4.0) ||| in class {nameof(App)} and method {GetStackTraseMethod().GetMethod().Name}");
                MessageBox.Show("Пожалуста установите Microsoft SQL Server Compact 4.0");
                return;
            }
            try
            {
                // MainWnd = new MainWindow();

                var _rep = App.Repository;

                ScreenManagerInit();


                if (_rep.Setting.FirstOrDefault() == null)
                {
                    _rep.FirstExecute();
                }
                else
                {
                    Setting.Import();
                }

                ObserverUserActivity.StartActivityObserv();

                if (App.Setting.IsKioskMode)
                {
                    Taskbar.Hide();
                    MainWnd.Topmost = true;
                }
                else
                {
                    MainWnd.Topmost = false;
                }

                ShowWindows();

                MonitorManager.RestartPositionWindows();
                CommandInvoker <NavigateToCommand> .Command.Execute(nameof(StartUpPage));
            }
            catch (Exception ex)
            {
                try
                {
                    MainWnd.Show();
                }
                catch
                {
                    App.SendException(ex);
                    MessageBox.Show("Подключите оккулус или второй монитор");
                }

                CommandInvoker <NavigateToCommand> .Command.Execute(nameof(MainSettingPage));
            }
        }