/// <summary>
 /// Shows a PropertyGrid Dialog and uses the specified object as the edit copy.
 /// </summary>
 /// <param name="editCopy"></param>
 public void ShowDialog(object editCopy)
 {
     _frmDialog = new PropertyDialog();
     _frmDialog.PropertyGrid.SelectedObject = editCopy;
     _frmDialog.ChangesApplied += frmDialog_ChangesApplied;
     _frmDialog.ShowDialog();
 }
 private void btnShadedRelief_Click(object sender, EventArgs e)
 {
     PropertyDialog frm = new PropertyDialog();
     IShadedRelief newCopy = _rasterSymbolizer.ShadedRelief.Copy();
     frm.PropertyGrid.SelectedObject = newCopy;
     if (frm.ShowDialog(this) != DialogResult.OK) return;
     _rasterSymbolizer.ShadedRelief = newCopy;
     OnDataChanged();
 }