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