コード例 #1
0
        private void Package()
        {
            MultiPointShape           shape = new MultiPointShape(this.Controller.Model, points, MultiPointType.Polygon);
            AddMultiPointShapeCommand cmd   = new AddMultiPointShapeCommand(this.Controller, shape);

            this.Controller.UndoManager.AddUndoCommand(cmd);
            cmd.Redo();
        }
コード例 #2
0
        private void Package()
        {
            MultiPointShape           shape = new MultiPointShape(this.Controller.Model, points, MultiPointType.Straight);
            AddMultiPointShapeCommand cmd   = new AddMultiPointShapeCommand(this.Controller, shape);

            this.Controller.UndoManager.AddUndoCommand(cmd);
            this.Controller.View.ResetGhost();
            cmd.Redo();
        }
コード例 #3
0
        private void Package()
        {
            if ((points == null) ||
                (points.Length < 1) ||
                (points[0] == Point.Empty))
            {
                return;
            }

            MultiPointShape shape = new MultiPointShape(
                this.Controller.Model,
                points,
                MultiPointType.Polygon);

            AddMultiPointShapeCommand cmd = new AddMultiPointShapeCommand(this.Controller, shape);

            this.Controller.UndoManager.AddUndoCommand(cmd);
            cmd.Redo();
        }
コード例 #4
0
 private void Package()
 {
     MultiPointShape shape = new MultiPointShape(this.Controller.Model, points, MultiPointType.Curve);
     AddMultiPointShapeCommand cmd = new AddMultiPointShapeCommand(this.Controller, shape);
     this.Controller.UndoManager.AddUndoCommand(cmd);
     this.Controller.View.ResetGhost();
     cmd.Redo();
 }
コード例 #5
0
    private void Package() {
      if ((points == null) ||
         (points.Length < 1) ||
         (points[0] == Point.Empty)) {
        return;
      }

      MultiPointShape shape = new MultiPointShape(
          this.Controller.Model,
          points,
          MultiPointType.Straight);

      AddMultiPointShapeCommand cmd = new AddMultiPointShapeCommand(this.Controller, shape);
      this.Controller.UndoManager.AddUndoCommand(cmd);
      this.Controller.View.ResetGhost();
      cmd.Redo();
    }