public MainViewModel() { Current = this; Title = "Сервер ОПС FS2"; ExitCommand = new RelayCommand(OnExit); ShowLogCommand = new RelayCommand(OnShowLog); }
private static void OnWorkThread() { try { MainViewModel = new MainViewModel(); ApplicationService.Run(MainViewModel, false, false); } catch (Exception e) { Logger.Error(e, "Bootstrapper.OnWorkThread"); } System.Windows.Threading.Dispatcher.Run(); }