Example #1
0
        protected override void OnPaint(PaintEventArgs e)
        {
            try
            {
                if (_render != null && _renderingData != null)
                {
                    _render.DoRender(e.Graphics, _renderingData);
                }
                if (selection1 != null)
                {
                    //'There is a selection rectangle so draw it
                    e.Graphics.FillRectangle(hbr, selection1);
                    e.Graphics.FillRectangle(hbr, selection2);
                    e.Graphics.FillRectangle(hbr, selection3);
                    e.Graphics.FillRectangle(hbr, selection4);
                    e.Graphics.FillRectangle(hbr, selection5);

                    _selection1 = selection1;
                    _selection2 = selection2;
                    _selection3 = selection3;
                    _selection4 = selection4;
                    _selection5 = selection5;
                }
            }
            catch
            {
                // nothing
            }
        }
Example #2
0
 protected override void OnPaint(PaintEventArgs e)
 {
     try
     {
         if (_render != null && _renderingData != null)
         {
             _render.DoRender(e.Graphics, _renderingData);
         }
     }
     catch
     {
         // nothing
     }
 }
Example #3
0
 protected override void OnPaint(PaintEventArgs e)
 {
     try
     {
         if (_render != null && _renderingData != null)
         {
             _render.DoRender(e.Graphics, _renderingData);
         }
         if (selection != null)
         {
             //'There is a selection rectangle so draw it
             e.Graphics.FillRectangle(hbr, selection);
             _selection = selection;
         }
     }
     catch
     {
         // nothing
     }
 }