Esempio n. 1
0
		public MainViewModel()
		{
			Current = this;
			Title = "Сервер ОПС FS2";
			ExitCommand = new RelayCommand(OnExit);
			ShowLogCommand = new RelayCommand(OnShowLog);
		}
Esempio n. 2
0
		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();
		}