Class PanelFormSelector
Contains tree view with the grouped list of forms and "Open" button which creates and shows them. Use AddGroup(string) to add group and Add(string, Func<Window>) to add item.
public class PanelFormSelector : Panel, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo- Inheritance
- 
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      PanelFormSelector
- Implements
Constructors
- PanelFormSelector()
- Initializes a new instance of the PanelFormSelector class. 
Properties
- ButtonPanel
- Gets button panel which contains "Open" button. 
- GroupFont
- Gets or sets group font. Assign it before adding of the groups. 
- HasGroups
- Gets or sets whether any groups were added. This property is used in order to determine indentation of the items. 
- OpenButton
- Gets "Open" button. 
- RootItem
- Gets collection of the items. 
- View
- Gets listbox with the list of forms. 
Methods
- Add(string, Func<Window>)
- Adds an item with the specified text and form create action. 
- AddDefaultItems()
- Called from the constructor. You can override this method in order to add default items. Use AddGroup(string) and Add(string, Func<Window>) inside this method for adding the default items. 
- AddGroup(string)
- Adds group. 
- AddIfDebug(string, Func<Window>)
- Adds item if DEBUG conditional is specified. 
- HandleOpenButtonClick(object?, EventArgs)
- Called when "Open" button is clicked. 
- OnSelectionChanged(object?, EventArgs)
- Handles the selection change event of the tree view. Enables or disables the "Open" button based on the selected item's properties.