public AlgorithmAction(DeviceAlgorithm device, AlgorithmAction algorithmAction, ActionSettings actionSettings)
        {
            Device = device;

            ParentAction = algorithmAction;
            ActionSettings = actionSettings;
            Type = actionSettings.Type;
            Name = actionSettings.Name;
            OnDbWriteOnly = actionSettings.OnDbWriteOnly;

            CommonConstruction();
        }
Ejemplo n.º 2
0
        private void LoadActions()
        {
            Actions = new ObservableCollection<ActionSettings>();
            foreach (XmlNode e in settings.ChildNodes)
            {
                if (e.NodeType == XmlNodeType.Element && e.Name == "action")
                {
                    ActionSettings action = new ActionSettings(DeviceManagementSettings, (XmlElement)e);

                    Actions.Add(action);
                }
            }
        }
 public AlgorithmAction_SendBlock(DeviceAlgorithm device, AlgorithmAction action, ActionSettings actionSettings)
     : base(device, action, actionSettings)
 {
     CommonConstruction();
 }
 public AlgorithmAction_RepeatCountTimes(DeviceAlgorithm device, AlgorithmAction action, ActionSettings actionSettings)
     : base(device, action, actionSettings)
 {
     CommonConstruction();
 }
 public Algorithm(DeviceAlgorithm device, ActionSettings actionSettings)
     : base(device, null, actionSettings)
 {
 }
 public AlgorithmAction_Repeat(DeviceAlgorithm device, Algorithm algorithm, ActionSettings actionSettings)
     : base(device, algorithm, actionSettings)
 {
     CommonConstruction();
 }
 public AlgorithmAction_LogError(DeviceAlgorithm device, AlgorithmAction action, ActionSettings actionSettings)
     : base(device, action, actionSettings)
 {
     CommonConstruction();
 }