public static DateTime StartTime(string noteID, string stime, string registryID) { DateTime fromTime = DateTime.MinValue; using (gjtEmrPatients.emrPatients pi = new gjtEmrPatients.emrPatients()) { string msg = pi.GetStartTime(noteID, stime, registryID, ref fromTime); if (msg != null) { MessageBox.Show(msg, EmrConstant.ErrorMessage.Error); return(fromTime); } return(fromTime); } }