public ActionParameter(DeviceAlgorithm device, AlgorithmAction algorithmAction, ParameterSettings parameterSettings)
 {
     Device = device;
     AlgorithmAction = algorithmAction;
     ParameterSettings = parameterSettings;
     Name = ParameterSettings.Name;
     IsSpecialValue = Name.StartsWith("!");
     Content = ParameterSettings.Content;
     if (Content != "")
         ContentVariable = Device.FindVariable(Content);
     else
         ContentVariable = null;
     ParameterValue = ParameterSettings.ParameterValue;
 }
        private void LoadParameters()
        {
            Parameters = new ObservableCollection<ParameterSettings>();
            foreach (XmlNode e in settings.ChildNodes)
            {
                if (e.NodeType == XmlNodeType.Element && e.Name == "parameter")
                {
                    ParameterSettings par = new ParameterSettings(DeviceManagementSettings, (XmlElement)e);

                    Parameters.Add(par);
                }
            }
        }