private void btnClose_Click(object sender, EventArgs e) { int choiceId = dbOps.getChoice(sysMessages.msgClose); bool goodToProceed = entryVal.validateCookieTransfer(choiceId, cboFrom.Text, cboTo.Text); if (goodToProceed) { string msg = sysMessages.msgThereIs + sysMessages.msgSpace + sysMessages.msgCookie.ToLower() + sysMessages.msgSpace + sysMessages.msgDataEntered + sysMessages.msgSpace + sysMessages.msgSaved + sysMessages.msgPeriod + sysMessages.msgSpace + sysMessages.msgAreYouSure + sysMessages.msgSpace + sysMessages.msgYouWishTo + sysMessages.msgSpace + sysMessages.msgSave + sysMessages.msgSpace + sysMessages.msgProcess + sysMessages.msgQuestion; result = MessageBox.Show(msg, sysMessages.msgAttention, MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation); if (result == DialogResult.Yes) { this.Close(); } } else { this.Close(); } }