コード例 #1
0
ファイル: MainViewModel.cs プロジェクト: saeednazari/Rubezh
		public MainViewModel()
		{
			Current = this;
			Title = "Сервер ОПС FS2";
			ExitCommand = new RelayCommand(OnExit);
			ShowLogCommand = new RelayCommand(OnShowLog);
		}
コード例 #2
0
ファイル: Bootstrapper.cs プロジェクト: saeednazari/Rubezh
		private static void OnWorkThread()
		{
			try
			{
				MainViewModel = new MainViewModel();
				ApplicationService.Run(MainViewModel, false, false);
			}
			catch (Exception e)
			{
				Logger.Error(e, "Bootstrapper.OnWorkThread");
			}
			System.Windows.Threading.Dispatcher.Run();
		}