Example #1
0
        void CHECKTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            TreeNode tr = e.Node as TreeNode;
            CHECKTree.SelectedNode = e.Node;

            if (CHECKTree.SelectedNode != null)
            {
                CHECKTree.SelectedNode.Checked = true;
            }
            if (CHECKTree.SelectedNode != null && CHECKTree.SelectedNode.Tag is EntityInfo)
            {
                EntityInfo ent = CHECKTree.SelectedNode.Tag as EntityInfo;
                //MessageBox.Show("EntityInfo:" + ent.EntityName + ",count:" + ent.operaters.Count);
                ConfigForm cf = new ConfigForm();
                cf.Table = ent;
                cf.Operaters = ent.operaters;
                cf.RefreshOpera2 += cf_RefreshOpera2;
                cf.ShowDialog();
            }    
        }
Example #2
0
 private void lsClass_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     ConfigForm cf = new ConfigForm();
     cf.Table = lsClass.SelectedItem as EntityInfo;
     cf.ShowDialog();
     lsModules.DataSource = AppConf.Ins.Application.Modules;
     lsModules_SelectedIndexChanged(null, null);
     //MessageBox.Show((lsClass.SelectedItem as EntityInfo).EntityName);
 }