diff --git a/Louis'-Pharmacy_CNSA212-FP/frmPatient.cs b/Louis'-Pharmacy_CNSA212-FP/frmPatient.cs index f9eaaae..5008a09 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmPatient.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmPatient.cs @@ -123,12 +123,27 @@ namespace Louis__Pharmacy_CNSA212_FP epLocal.SetError(txtLname, "Invalid Value"); parseHasFailed = true; } + + if (LastName.Length < 1) + { + epLocal.SetError(txtLname, "Must Enter A Last Name"); + parseHasFailed = true; + } + { + + } if (FirstName.Length > 30) { epLocal.SetError(txtFname, "Invalid Value"); parseHasFailed = true; } + if (FirstName.Length < 1) + { + epLocal.SetError(txtFname, "Must Enter A First Name"); + parseHasFailed = true; + } + if (Patient_id.Length > 8) { epLocal.SetError(txtPatientID, "Invalid Value");