private void _btnOpenForm_OnClick(IUEditorWidgetClickable sender, System.EventArgs e) { if (this._activeButton != null) { foreach (var item in _listFormTypes) { if (item.Name == _activeButton.Label) { EditorDesignerEngine.LoadEditor(item.ItemType); this.CloseWindow = true; } } } }
public static void LoadEditor <T>() where T : frmBase { EditorDesignerEngine.LoadEditor(typeof(T)); }
public static void CreateNewForm() { EditorDesignerEngine.LoadEditor <frmBase>(); }