public bool SetPropertyValue(string name, string value) { OWLOSDriverProperty property = GetProperty(name); if (property == null) { return(false); } property.value = value; return(true); }
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); }
public OWLOSPropertyWrapperEventArgs(OWLOSDriverProperty property) { this.property = property; }