Example #1
0
        /// <summary>
        /// Move all Figures with base call and clashing
        /// </summary>
        /// <param name="drawingArea">Picture Box</param>
        /// <param name="figures">All Figure list</param>
        public override void Move(PictureBox drawingArea, List <Figure> figures)
        {
            foreach (var i in figures)
            {
                if (this != i && this.IntersectWith(i))
                {
                    FiguresClash.FigureClash(this, i);
                }
            }

            base.Move(drawingArea, figures);
        }
Example #2
0
        /// <summary>
        /// Move all Figures with base call and clashing
        /// </summary>
        /// <param name="drawingArea">Picture Box</param>
        /// <param name="figures">All Figure list</param>
        public override void Move(PictureBox drawingArea, List <Figure> figures)
        {
            try
            {
                foreach (var i in figures)
                {
                    if (this != i && this.IntersectWith(i))
                    {
                        FiguresClash.FigureClash(this, i);
                    }
                }
            }
            catch (InvalidOperationException)
            {
            }

            base.Move(drawingArea, figures);
        }