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;
 }
 private static void AddBuildPluginProperty(ICollection<Control> controls, PluginProperty pluginProperty){
     var pluginPropertyControl = BuildPluginProperty(pluginProperty);
     if (pluginPropertyControl != null)
         controls.Add(pluginPropertyControl);
 }
 protected Guid AddBooleanProperty(bool value, string title){
     var pluginProperty = new PluginProperty(PluginPropertyType.Boolean, value, title);
     Properties.Add(pluginProperty);
     return pluginProperty.Id;
 }