Exemple #1
0
        public override object Clone()
        {
            DoPatternDrawCmd doPatternCmdLine = MemberwiseClone() as DoPatternDrawCmd;

            doPatternCmdLine.pattern  = pattern.Clone() as DrawPattern;
            doPatternCmdLine.position = position;
            return(doPatternCmdLine);
        }
Exemple #2
0
 public ArrayDrawCmd(DrawPattern pattern, PointF[] originPoints, bool enable)
 {
     this.patterns     = new DrawPattern[originPoints.Length];
     this.originPoints = new PointF[originPoints.Length];
     this.enable       = enable;
     for (int i = 0; i < this.originPoints.Length; i++)
     {
         this.originPoints[i] = DrawingUtils.Instance.CoordinateTrans(originPoints[i]);
         this.patterns[i]     = pattern.Clone() as DrawPattern;
         this.doPatterns.Add(new DoPatternDrawCmd(patterns[i], originPoints[i], this.enable));
     }
 }
Exemple #3
0
 public DoPatternDrawCmd(DrawPattern pattern, PointF position, bool enable)
 {
     this.pattern  = pattern.Clone() as DrawPattern;
     this.position = position;
     this.enable   = enable;
 }