public ControlOpcDaTagStepViewModel(StepViewModel stepViewModel, ControlElementType controlElementType) : base(stepViewModel) { ControlOpcDaTagStep = (ControlOpcDaTagStep)stepViewModel.Step; ControlElementType = controlElementType; ValueArgument = new ArgumentViewModel(ControlOpcDaTagStep.ValueArgument, stepViewModel.Update, UpdateContent, controlElementType == ControlElementType.Set); }
public ControlVisualStepViewModel(StepViewModel stepViewModel, ControlElementType controlElementType) : base(stepViewModel) { ControlVisualStep = (ControlVisualStep)stepViewModel.Step; ControlElementType = controlElementType; IsServerContext = Procedure.ContextType == ContextType.Server; ValueArgument = new ArgumentViewModel(ControlVisualStep.Argument, stepViewModel.Update, UpdateContent, controlElementType == ControlElementType.Set); }
/// <summary> /// /// </summary> /// <param name="type"></param> /// <param name="controlElementName"></param> /// <param name="probability"></param> /// <param name="location"></param> /// <param name="origin">The element identifier that represents the origin of the connector</param> /// <param name="target">The element identifier that represents the target of the connector</param> public ControlElement(ControlElementType type, string controlElementName, decimal probability, Point?location = null, Guid?origin = null, Guid?target = null) { Guid = Guid.NewGuid(); _type = type; _controlElementName = controlElementName; _probability = probability; _needsLinking = true; _location = location ?? GlobalVariableManager.DefaultNodeLocation; _originIdentifier = origin; _targetIdentifier = target; }
public ControlPlanStepViewModel(StepViewModel stepViewModel, ControlElementType controlElementType) : base(stepViewModel) { ControlPlanStep = (ControlPlanStep)stepViewModel.Step; ControlElementType = controlElementType; ValueArgument = new ArgumentViewModel(ControlPlanStep.ValueArgument, stepViewModel.Update, UpdateContent, controlElementType == ControlElementType.Set); IsServerContext = Procedure.ContextType == ContextType.Server; ElementPropertyTypes = new ObservableCollection<ElementPropertyType>(); ServiceFactoryBase.Events.GetEvent<ElementChangedEvent>().Subscribe(OnElementsChanged); ServiceFactoryBase.Events.GetEvent<ElementAddedEvent>().Subscribe(OnElementsChanged); ServiceFactoryBase.Events.GetEvent<ElementRemovedEvent>().Subscribe(OnElementsChanged); ServiceFactoryBase.Events.GetEvent<PlansConfigurationChangedEvent>().Subscribe((o) => UpdateContent()); }
public PossibleControlElement(ControlElementType type, string possibleControlElement, decimal probability, Point?location, Guid?origin, Guid?target) : base(type, possibleControlElement, probability, location, origin, target) { }
public PredictedControlElement(ControlElementType type, string predictedControlElementName, decimal probability, Point?location, Guid?origin, Guid?target) : base(type, predictedControlElementName, probability, location, origin, target) { PossibleControlElements = new List <PossibleControlElement>(); }