Exemple #1
0
        public void ProTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (cancheck)
            {
                if (ProTree.SelectedNode.Tag is ModuleInfo)
                {
                    CheckedModule = ProTree.SelectedNode.Tag as ModuleInfo;
                    ReloadModule();

                }
                if (ProTree.SelectedNode.Tag is EntityInfo)
                {
                    Checkedentity = ProTree.SelectedNode.Tag as EntityInfo;
                    //formConf.Editedtable = Checkedentity;

                    FMEntityEditor editor = new FMEntityEditor();
                    editor.entity = Checkedentity;
                    editor.WindowState = FormWindowState.Maximized;
                    editor.RefreshModeltable += ClassDiagCtrl.Ins.editor_RefreshModeltable;
                    editor.ShowDialog();

                    //MessageBox.Show(Checkedentity.EntityName);
                }
            }
        }
        void model1_ElementDoubleClick(object sender, EventArgs e)
        {
            formConf.Editedtable = sender as Table;
            EntityInfo entity = AppConf.Ins.views_tbkey[formConf.Editedtable];
            //MessageBox.Show(entity.ToString());

            FMEntityEditor editor = new FMEntityEditor();
            editor.entity = entity;
            editor.WindowState = FormWindowState.Maximized;
            editor.RefreshModeltable += editor_RefreshModeltable;
            editor.Show();
            //MessageBox.Show(sender.ToString());
        }