public MainViewModel() { Current = this; Title = "OPC Сервер ОПС FireSec"; ShowImitatorCommand = new RelayCommand(OnShowImitator); RegisterCommand = new RelayCommand(OnRegister); }
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(); }