Example #1
0
 public Patient(String patientName, string patientDOB, patientGender a, String Disease, String address)
 {
     if (ax.ToString() == "" || ax.ToString() == null || patientDOB.Trim().Length == 0 || patientDOB == null || patientName.Trim().Length == 0 || patientName == null || Disease.Trim().Length == 0 || Disease == null || address.Trim().Length == 0 || address == null)
     {
         throw new Exception("Illegal arguments passed");
     }
     this.patientName = patientName;
     this.patientDOB  = patientDOB;
     this.ax          = a;
     this.Disease     = Disease;
 }
Example #2
0
 public void setpatientGender(patientGender a)
 {
     this.ax = a;
 }