Example #1
0
        /// <summary>
        /// Refreshes the graphics.
        /// </summary>
        /// <param name="centerX">The center x.</param>
        /// <param name="centerY">The center y.</param>
        private void RefreshGraphics(int centerX = 0, int centerY = 0)
        {
            if (centerX == 0 || centerY == 0)
            {
                centerX = groupBoxDrawArea.Bounds.Width / 2;
                centerY = groupBoxDrawArea.Bounds.Height / 2;
            }
            this.graphics.Clear(Color.White);
            this.graphics = groupBoxDrawArea.CreateGraphics();
            string          businessProcess = this.tabControlArea.SelectedTab.Text;
            BusinessProcess bc = this.cmodel.GetBusinessProcess(businessProcess);

            bc.DrawSunModelGraphics(this.graphics, centerX, centerY, groupBoxDrawArea.Bounds.Width, groupBoxDrawArea.Bounds.Height, this.zoom);
        }