Ejemplo n.º 1
0
 private static Control BuildPluginProperty(PluginProperty pluginProperty){
     switch(pluginProperty.PropertyType){
         case PluginPropertyType.Boolean:
             return new BooleanPluginPropertyControl{Dock = DockStyle.Top, Property = pluginProperty};
     }
     Debug.Fail(string.Format("Unsupported plugin property type \"{0}\"", pluginProperty));
     return null;
 }
Ejemplo n.º 2
0
 private static void AddBuildPluginProperty(ICollection<Control> controls, PluginProperty pluginProperty){
     var pluginPropertyControl = BuildPluginProperty(pluginProperty);
     if (pluginPropertyControl != null)
         controls.Add(pluginPropertyControl);
 }
Ejemplo n.º 3
0
 protected Guid AddBooleanProperty(bool value, string title){
     var pluginProperty = new PluginProperty(PluginPropertyType.Boolean, value, title);
     Properties.Add(pluginProperty);
     return pluginProperty.Id;
 }