private void ButtonYes_ButtonPressEvent(object o, ButtonPressEventArgs args) { propertyPage.NotifyClosing(); if (RunValidation()) { result = System.Windows.Forms.DialogResult.OK; } }