Example #1
0
		public MainViewModel()
		{
			Current = this;
			Title = "OPC Сервер ОПС FireSec";
			ShowImitatorCommand = new RelayCommand(OnShowImitator);
			RegisterCommand = new RelayCommand(OnRegister);
		}
Example #2
0
		static void OnWorkThread()
		{
			try
			{
				MainViewModel = new MainViewModel();
				ApplicationService.Run(MainViewModel, false, false);
			}
			catch (Exception e)
			{
				Logger.Error(e, "Исключение при вызове Bootstrapper.OnWorkThread");
			}
			MainViewStartedEvent.Set();
			System.Windows.Threading.Dispatcher.Run();
		}