Exemple #1
0
 /// <summary>
 /// 修改分段菜单
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tsmiEditModule_Click(object sender, EventArgs e)
 {
     if (tvModule.SelectedNode == null)
     {
         return;
     }
     if (tvModule.SelectedNode.Level == 2)
     {
         string drawingPlanId = tvModule.SelectedNode.Parent.Tag.ToString();
         drawingPlanId = drawingPlanId.Substring(4);//除去item
         Drawing         objDrawing         = objDrawingService.GetDrawingById(drawingPlanId);
         string          moduleTreeId       = tvModule.SelectedNode.Tag.ToString();
         ModuleTree      objModuleTree      = objModuleTreeService.GetModuleTreeById(moduleTreeId);
         FrmCategoryTree objFrmCategoryTree = new FrmCategoryTree(objDrawing, objModuleTree);
         DialogResult    result             = objFrmCategoryTree.ShowDialog();
         if (result == DialogResult.OK)
         {
             //更新模型树
             RefreshTree();
         }
     }
 }
Exemple #2
0
        private void btnCategoryTree_Click(object sender, EventArgs e)
        {
            FrmCategoryTree objCategoryTree = new FrmCategoryTree();

            objCategoryTree.ShowDialog();
        }