コード例 #1
0
		public override void UpdateContent()
		{
			ObjectArgument.Update(Procedure, ExplicitType.Object, objectType: ObjectType, isList: false);
			IsServerContext = Procedure.ContextType == ContextType.Server;
			ProcedureLayoutCollectionViewModel = new ProcedureLayoutCollectionViewModel(ShowPropertyStep.LayoutFilter);
			OnPropertyChanged(() => ProcedureLayoutCollectionViewModel);
		}
コード例 #2
0
		public override void UpdateContent()
		{
			MessageArgument.Update(Procedure, ExplicitType, EnumType, ObjectType, isList: false);
			ConfirmationValueArgument.Update(Procedure, ExplicitType.Boolean, isList: false);
			ProcedureLayoutCollectionViewModel = new ProcedureLayoutCollectionViewModel(ShowMessageStep.LayoutFilter);
			IsServerContext = Procedure.ContextType == ContextType.Server;
			OnPropertyChanged(() => ProcedureLayoutCollectionViewModel);
		}
コード例 #3
0
		public ShowDialogStepViewModel(StepViewModel stepViewModel)
			: base(stepViewModel)
		{
			ShowDialogStep = (ShowDialogStep)stepViewModel.Step;
			IsServerContext = Procedure.ContextType == ContextType.Server;
			WindowUIDArgument = new ArgumentViewModel(ShowDialogStep.WindowIDArgument, stepViewModel.Update, UpdateContent);
			ProcedureLayoutCollectionViewModel = new ProcedureLayoutCollectionViewModel(ShowDialogStep.LayoutFilter);
			IsServerContext = Procedure.ContextType == ContextType.Server;
		}
コード例 #4
0
ファイル: SoundStepViewModel.cs プロジェクト: xbadcode/Rubezh
		public override void UpdateContent()
		{
			Sounds = new ObservableCollection<SoundViewModel>();
			foreach (var sound in ClientManager.SystemConfiguration.AutomationConfiguration.AutomationSounds)
			{
				var soundViewModel = new SoundViewModel(sound);
				Sounds.Add(soundViewModel);
			}
			if (ClientManager.SystemConfiguration.AutomationConfiguration.AutomationSounds.Any(x => x.Uid == SoundStep.SoundUid))
				SelectedSound = Sounds.FirstOrDefault(x => x.Sound.Uid == SoundStep.SoundUid);
			else
				SelectedSound = null;

			IsServerContext = Procedure.ContextType == ContextType.Server;
			ProcedureLayoutCollectionViewModel = new ProcedureLayoutCollectionViewModel(SoundStep.LayoutFilter);
			OnPropertyChanged(() => ProcedureLayoutCollectionViewModel);
			OnPropertyChanged(() => Sounds);
		}
コード例 #5
0
		public override void UpdateContent()
		{
			Plans = new ObservableCollection<PlanViewModel>(ClientManager.PlansConfiguration.AllPlans.Select(x => new PlanViewModel(x)));
			SelectedPlan = Plans.FirstOrDefault(x => x.Plan.UID == ControlPlanStep.PlanUid);
			IsServerContext = Procedure.ContextType == ContextType.Server;
			OnPropertyChanged(() => Plans);
			ProcedureLayoutCollectionViewModel = new ProcedureLayoutCollectionViewModel(ControlPlanStep.LayoutFilter);
			OnPropertyChanged(() => ProcedureLayoutCollectionViewModel);
		}