示例#1
0
        public bool SetPropertyValue(string name, string value)
        {
            OWLOSDriverProperty property = GetProperty(name);

            if (property == null)
            {
                return(false);
            }
            property.value = value;
            return(true);
        }
示例#2
0
        public async Task <bool> SetParsedProperty(string name, string value)
        {
            string _value = value.Substring(0, value.IndexOf("//"));
            string _flags = value.Substring(value.IndexOf("//") + 2);

            OWLOSDriverProperty property = properties.Find(p => p.name == name);

            if (property == null)
            {
                property = new OWLOSDriverProperty(this, name, _value, _flags);
                properties.Add(property);
                PropertyCreate(new OWLOSPropertyWrapperEventArgs(property));
            }
            else
            {
                property.SetOutside(_value);
            }

            return(true);
        }
示例#3
0
 public OWLOSPropertyWrapperEventArgs(OWLOSDriverProperty property)
 {
     this.property = property;
 }