Example #1
0
 // forces object to recalculate its bounds
 public void RefreshObject(INeedRefresh obj)
 {
     if (cview != null)
     {
         using (Graphics g = Graphics.FromHwnd(cview.Handle))
             obj.RefreshView(g);
     }
 }
Example #2
0
 // forces object to recalculate its bounds
 public void RefreshObject( INeedRefresh obj )
 {
     if( cview != null )
         using( Graphics g = Graphics.FromHwnd( cview.Handle ) )
             obj.RefreshView( g );
 }