示例#1
0
 private void next()
 {
     var name = tlTaskType.FocusedNode.GetDisplayText("Name");
     if (name.Equals("设计任务"))
     {
         var projecttask = new CreateProjectTask();
         projecttask.ShowDialog();
     }
     else if (name.Equals("办公任务"))
     {
         var officetask = new CreateOfficeTask();
         officetask.ShowDialog();
     }
     else if (name.Equals("工艺任务"))
     {
         var technologytask = new CreateTechnologyTask();
         technologytask.ShowDialog();
     }
 }
示例#2
0
        private void next()
        {
            var name = tlTaskType.FocusedNode.GetDisplayText("Name");

            if (name.Equals("设计任务"))
            {
                var projecttask = new CreateProjectTask();
                projecttask.ShowDialog();
            }
            else if (name.Equals("办公任务"))
            {
                var officetask = new CreateOfficeTask();
                officetask.ShowDialog();
            }
            else if (name.Equals("工艺任务"))
            {
                var technologytask = new CreateTechnologyTask();
                technologytask.ShowDialog();
            }
        }