public void FinishAddTask()
        {
            ActiveWorkspace.AddTask(TaskModel.CurrentTask);

            ActiveKnifeTool = new KnifeToolInstance();
            KnifeShape.UpdateKnifeTool(ActiveKnifeTool);
        }
        public void OnTaskChanged(Object sender)
        {
            ActiveTask.UpdateGeometry();

            KnifeShape.UpdateKnifeTool(ActiveKnifeTool);
            OnModelChanged(EnumModelType.MT_Task, EnumDataChange.DC_MODIFIED);
        }
        public void BeginEditTask(MachineTask task, WorkPathModel shapeModel)
        {
            ActiveKnifeTool = task.Tool;

            shapeModel.PathChanged += OnPathChanged;

            TaskModel.ThePath      = shapeModel;
            TaskModel.CurrentTask  = task;
            TaskModel.TheKnifeTool = new KnifeToolModel(ActiveKnifeTool);

            KnifeShape.UpdateKnifeTool(ActiveKnifeTool);

            OnModelChanged(EnumModelType.MT_Task, EnumDataChange.DC_MODIFIED);
        }
 public void FinishEditTask()
 {
     ActiveKnifeTool = new KnifeToolInstance();
     KnifeShape.UpdateKnifeTool(ActiveKnifeTool);
 }