public void setDuration(string s)
 {
     if (s.CompareTo("null") == 0)
     {
         this.duration = s;
     }
     else
     {
         Conversions objectConversions = new Conversions();
         s             = objectConversions.replaceWithAppropriateShortForms(s);
         this.duration = objectConversions.durationOrRemainderToTotalHours(s).ToString();
     }
 }
 public void setDuration(string s)
 {
     try
     {
         if (s.CompareTo("null") == 0)
         {
             duration = s;
             return;
         }
         Conversions objectConversions = new Conversions();
         s = objectConversions.replaceWithAppropriateShortForms(s);
         TimeSpan durationProperFormat = objectConversions.durationOrRemainderToTotalHours(s);
         duration = durationProperFormat.ToString();
         //duration = s;
     }
     catch (Exception e)
     {
         StreamWriter loggingWriter = new StreamWriter("Logging.txt");
         loggingWriter.WriteLine(System.DateTime.Now + e.Message + "\n");
         loggingWriter.Close();
     }
 }