Exemple #1
0
 public static bool Validate(string hStatus, string hValue, string aftDraft, string foreDraft, string vValue)
 {
     try
     {
         VesselStatus.Create(hStatus, hValue, aftDraft, foreDraft, vValue);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Exemple #2
0
 public static VesselStatus Create(string hStatus, string hValue, string aftDraft, string foreDraft, string vValue)
 {
     return(VesselStatus.Parse(String.Format("{0}: {1} / {2} - {3} = {4}", hStatus, hValue, aftDraft, foreDraft, vValue)));
 }