Ejemplo n.º 1
0
 /// <summary>
 /// Called to update the property grid, if it is visible.
 /// </summary>
 private void _updatePropertyGrid()
 {
     if (null != _propertyGridForm)
     {
         foreach (System.Windows.Forms.Control control in _propertyGridForm.Controls)
         {
             System.Windows.Forms.PropertyGrid grid = control as System.Windows.Forms.PropertyGrid;
             if (null != grid)
             {
                 object current = grid.SelectedObject;
                 grid.SelectedObject = null;
                 grid.SelectedObject = current;
                 grid.Invalidate();
             }
         }
     }
 }