public void Init(TS set_tree, Control parent, CardTreeNForm entity_form) { _EntityForm = entity_form; _ParentControl = parent; _SetTree = set_tree; ParentControl.Controls.Add(_ToolBar); ParentControl.Controls.Add(_TreeV); _TreeV.BringToFront(); Reload(); }
//CtlCaptionPanel PanelCaption; public TreeNFormController(Form mdiForm, string name, string caption, Icon icon, CardTreeNForm tree_form) : base(mdiForm, name, caption, icon) { PaintPanels(); TreeList.EntityForm = tree_form; //fltController.Init(FToolBar); //ToolBar.Items[2].Enabled = ToolBar.Items[3].Enabled = ToolBar.Items[4].Enabled = false; TreeList.Init(SetTree, FForm.ContentPanel, new CardTreeNForm()); FForm.MdiParent = mdiForm; FForm.FormController = this; FToolBar.Visible = (FToolBar.Items != null && FToolBar.Items.Count > 0); Show(); }
public TreeNListFormController(Form mdiForm, string name, string caption, Icon icon, CardForm entity_form, CardTreeNForm tree_form) : this(mdiForm, name, caption, icon, true, true, null) { EntityForm = entity_form; TreeList.EntityForm = tree_form; }