コード例 #1
0
ファイル: Bootstrapper.cs プロジェクト: saeednazari/Rubezh
		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();
		}
コード例 #2
0
ファイル: Bootstrapper.cs プロジェクト: xbadcode/Rubezh
		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();
		}
コード例 #3
0
ファイル: MainViewModel.cs プロジェクト: xbadcode/Rubezh
		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>>();
		}