Group: Forum Members
Posts: 235,
Visits: 309
|
In this code tha references a bo:
PatientSelectedEventArgs pa = new PatientSelectedEventArgs(boPatientSearch1.MRN, boPatientSearch1.LASTNAME, boPatientSearch1.FIRSTNAME, boPatientSearch1.BIRTHDATE, boPatientSearch1.GENDER, boPatientSearch1.SSN);
with this set of event args:
public class PatientSelectedEventArgs : EventArgs
{
public PatientSelectedEventArgs(string MRN, string LastName, string FirstName, DateTime Birthdate, string Gender, string SSN)
{
this.MRN = MRN;
this.LastName = LastName;
this.FirstName = FirstName;
this.SSN = SSN;
this.Gender = Gender;
this.Birthdate = Birthdate;
this.IDSTRING = "MRN: " + MRN + ", Name: " + LastName + ", " + FirstName + ", Gender: " + Gender + ", Birthdate: " + Birthdate.ToShortDateString();
}
public string MRN;
public string IDSTRING;
public string LastName;
public string FirstName;
public string Gender;
public string SSN;
public DateTime Birthdate;
}
what is this?
Argument '4': cannot convert from 'System.DateTime?' to 'System.DateTime'
|