Esempio n. 1
0
 public void Init(TS set_tree, Control parent, CardTreeForm entity_form)
 {
     _EntityForm    = entity_form;
     _ParentControl = parent;
     _SetTree       = set_tree;
     ParentControl.Controls.Add(_ToolBar);
     ParentControl.Controls.Add(_TreeV);
     _TreeV.BringToFront();
     Reload();
 }
        //CtlCaptionPanel PanelCaption;

        public TreeFormController(Form mdiForm, string name, string caption, Icon icon, CardTreeForm 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 CardTreeForm());
            FForm.MdiParent      = mdiForm;
            FForm.FormController = this;

            //FToolBar.Visible = (FToolBar.Items != null && FToolBar.Items.Count == 0);

            Show();
        }
Esempio n. 3
0
 public TreeListFormController(Form mdiForm, string name, string caption, Icon icon, CardForm entity_form, CardTreeForm tree_form)
     : this(mdiForm, name, caption, icon, true, true, null)
 {
     EntityForm          = entity_form;
     TreeList.EntityForm = tree_form;
 }