Habanero.Faces.Win.DefaultBOEditorFormWin.CancelButtonHandler C# (CSharp) Method

CancelButtonHandler() protected method

A handler to respond when the "Cancel" button has been pressed. Any unsaved edits are cancelled and the dialog is closed.
protected CancelButtonHandler ( object sender, EventArgs e ) : void
sender object The object that notified of the event
e System.EventArgs Attached arguments regarding the event
return void
        protected virtual void CancelButtonHandler(object sender, EventArgs e)
        {
            if (CancelEditsToBusinessObject())
            {
                SafeCloseForm();
            }
        }