Exemple #1
0
        /// <summary>
        /// 드로우에리어 페인트 오버라이드
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DrawArea_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
        {
            SolidBrush brush = new SolidBrush(Color.FromArgb(255, 255, 255));

            e.Graphics.FillRectangle(brush, this.ClientRectangle);

            if (Mgr.Flolist.Count > 0 || Mgr.Gudcon != null || Mgr.Gudsrt != null)
            {
                FLOObj o = Mgr.Flolist.GetFLOSttObj();

                if (o != null && o.Drwobj == null)
                {
                    o.Drwobj = new DRWStt(o, this.ClientRectangle.Right, this.ClientRectangle.Top);
                }

                Mgr.Draw(e.Graphics);
            }

            if (this.Mgr.Gudsrt.GridpointX != 1)
            {
                ControlPaint.DrawGrid(e.Graphics, this.ClientRectangle, new Size((this.Mgr.Gudsrt.GridpointX), (this.Mgr.Gudsrt.GridpointY)), Color.Gray);
            }

            this.owner.statusBar1.Text = this.Mgr.Gudsrt.Seldraw.ToString();

            brush.Dispose();
        }