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(); }
public MainViewModel() { Current = this; Title = "OPC Сервер ГК ОПС FireSec"; RegisterCommand = new RelayCommand(OnRegister); }
public MainViewModel() { Current = this; Title = "OPC Сервер Рубеж Глобал"; RegisterCommand = new RelayCommand(OnRegister); }