Exemplo n.º 1
0
		public static void Run()
		{
			var resourceService = new ResourceService();
			resourceService.AddResource(new ResourceDescription(typeof(Bootstrapper).Assembly, "DataTemplates/Dictionary.xaml"));
			resourceService.AddResource(new ResourceDescription(typeof(ApplicationService).Assembly, "Windows/DataTemplates/Dictionary.xaml"));

			var mainViewModel = new MainViewModel();
			ApplicationService.Run(mainViewModel, false, false);
			//Application.Current.MainWindow.BringIntoView();
		}
Exemplo n.º 2
0
		public static void Run()
		{
			ServiceFactoryBase.ResourceService.AddResource(typeof(Bootstrapper).Assembly, "DataTemplates/Dictionary.xaml");
			ServiceFactoryBase.ResourceService.AddResource(typeof(ApplicationService).Assembly, "Windows/DataTemplates/Dictionary.xaml");

			var mainViewModel = new MainViewModel();
			var mainView = new MainView();
			mainView.DataContext = mainViewModel;
			mainView.Show();

			//ApplicationService.Run(mainViewModel, false, false);
			//Application.Current.MainWindow.BringIntoView();
			//Application.Current.MainWindow.Show();
		}
Exemplo n.º 3
0
		public MainViewModel()
		{
			Title = "Имитатор ГК";
			Current = this;
			ShowUsersCommand = new RelayCommand(OnShowUsers);
			ShowSchedulesCommand = new RelayCommand(OnShowSchedules);
			ConfigurationCashHelper.Update();
			InitializeDescriptors();
			GKProcessor = new NetProcessor();
			GKProcessor.Start();
			ImitatorServiceManager.Open();
			DelayThread = new Thread(OnCheckDelays);
			DelayThread.Start();
			activeStateBits = new List<Tuple<Guid, GKStateBit>>();
		}