public bool OnApply() { // Let each page deal with the apply. try { foreach (ElementPropertyPage page in m_propertyPages) { SavePropertyPage(page); } } catch (System.Exception ex) { new ExceptionDialog(ex, "The following exception has occurred:").ShowDialog(); return(false); } // Reset. m_originalObject = m_objectInfo.CloneObject(); return(true); }