Beispiel #1
0
 public void Add(string name, IProperty prop, string description = null, bool readOnly = false)
 {
     PropertyEntry.EditorData data = null;
     if (this.main.EditorEnabled)
     {
         data             = new PropertyEntry.EditorData();
         data.Readonly    = readOnly;
         data.Description = description;
     }
     this.properties.Add(name, new PropertyEntry(prop, data));
 }
Beispiel #2
0
 public void Add(string name, IProperty prop, PropertyEntry.EditorData editorData)
 {
     this.properties.Add(name, new PropertyEntry(prop, this.main.EditorEnabled ? editorData : null));
 }