public string CustomerIncidentDisplay()
    {
        //PostCondition:: returns Customer incident in the form a string
        string formatted = DateClosed.ToString("dd/MM/yyyy");

        return("Incident for product " + ProductCode
               + " closed " + formatted.Replace("-", "/") + " (" + Title + ")");
    }
Example #2
0
 public string customerIncidentDisplay()
 {
     if (DateClosed.ToString().Length == 0)
     {
         return("Incident for product " + ProductCode + " opened " + DateOpened + " (" + Title + ")");
     }
     else
     {
         return("Incident for product " + ProductCode + " closed " + DateClosed + " (" + Title + ")");
     }
 }