Class PanelFormSelector
Contains grouped listbox with the 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, IBaseObjectWithId, 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 identation of the items.
- Items
Gets collection of the items.
- ListBox
Gets listbox with the list of forms.
- OpenButton
Gets "Open" button.
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.