private void Application_Startup(object sender, StartupEventArgs e) { var view = new View(); var viewModel = new ViewModel(); view.DataContext = viewModel; view.Show(); }
private void Application_Startup(object sender, StartupEventArgs e) { FiresecManager.Connect(ClientType.Assad, ConnectionSettingsManager.ServerAddress, GlobalSettingsHelper.GlobalSettings.Login, GlobalSettingsHelper.GlobalSettings.Password); FiresecManager.GetConfiguration("AssadDeviceModelManager/Configuration"); FiresecManager.InitializeFiresecDriver(false); FiresecManager.FiresecDriver.Synchronyze(); FiresecManager.FiresecDriver.StartWatcher(false, false); var view = new View(); var viewModel = new ViewModel(); view.DataContext = viewModel; view.Show(); }