Пример #1
0
        public override void Create()
        {
            DxfItem itm = new DxfItem();

            itm.RecipeName = "占位dxf";
            itm.RecipeDate = "123";
            itm.RecipePath = new List <PATH>();
            itm.Max_x      = 0.0;
            itm.Max_y      = 0.0;
            this.Add(itm);
        }
Пример #2
0
        public IParameterItem Clone()
        {
            DxfItem clone = new DxfItem();

            clone.RecipeName = this.RecipeName;
            clone.RecipeDate = this.RecipeDate;
            foreach (PATH th in this.RecipePath)
            {
                clone.RecipePath.Add(th.Clon());
            }
            clone.Max_x = this.Max_x;
            clone.Max_y = this.Max_y;
            return(clone);
        }
Пример #3
0
        public void Copy(IParameterItem other)
        {
            DxfItem ot = other as DxfItem;

            if (ot == null)
            {
                return;
            }
            else
            {
                this.RecipeName = ot.RecipeName;
                this.RecipeDate = ot.RecipeDate;
                foreach (PATH th in ot.RecipePath)
                {
                    this.RecipePath.Add(th.Clon());
                }
                this.Max_x = ot.Max_x;
                this.Max_y = ot.Max_y;
            }
        }