Ejemplo n.º 1
0
 private void addProperty(EditableProperty property)
 {
     flowLayout.SuppressLayout = true;
     if (showAdvancedButton != null)
     {
         flowLayout.removeChild(showAdvancedButton.Container);
     }
     if (showAdvancedProperties || !property.Advanced)
     {
         PropertiesFormComponent component = createComponenet(property);
         components.Add(component);
         flowLayout.addChild(component.Container);
     }
     else
     {
         hiddenAdvancedProperties.AddLast(property);
         if (showAdvancedButton == null)
         {
             showAdvancedButton = new PropertiesFormButton(currentEditInterface, new EditInterfaceCommand("Show Advanced", addHiddenProperties), uiCallback, widget);
             components.Add(showAdvancedButton);
         }
     }
     if (showAdvancedButton != null)
     {
         flowLayout.addChild(showAdvancedButton.Container);
     }
     flowLayout.SuppressLayout = false;
 }
Ejemplo n.º 2
0
 private void addHiddenProperties()
 {
     showAdvancedProperties = true;
     foreach (EditableProperty property in hiddenAdvancedProperties)
     {
         addProperty(property);
     }
     hiddenAdvancedProperties.Clear();
     components.Remove(showAdvancedButton);
     flowLayout.removeChild(showAdvancedButton.Container);
     showAdvancedButton.Dispose();
     showAdvancedButton = null;
     layout();
 }