Exemplo n.º 1
0
        private bool ValidateSubmission()
        {
            try
            {
                if (Utils.BeneficiaryRegObj.Image == null)
                {
                    MessageBox.Show(@"No picture capture for the registrant!",
                                    @"Validation Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    return(false);;
                }

                if (CustomHelper.ValidateArray(Utils.BeneficiaryRegObj.CapturedFingerPrintTemplate))
                {
                    MessageBox.Show(@"No fingerprint capture for the registrant!",
                                    @"Validation Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    return(false);;
                }

                return(true);

                // Utils.BeneficiaryRegObj.CapturedFingerPrintTemplate
            }
            catch (Exception)
            {
                MessageBox.Show(@"Error Occurred! Please try again later", @"Error", MessageBoxButtons.OK,
                                MessageBoxIcon.Exclamation);
                return(false);
            }
        }