Пример #1
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     var view = new View();
     var viewModel = new ViewModel();
     view.DataContext = viewModel;
     view.Show();
 }
Пример #2
0
		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();
		}