Example #1
0
        public string CustomerIncidentDisplay()
        {
            string displayIncident = "Incident for product " + ProductCode + " closed "
                                     + DateClosed.ToShortDateString() + " ( " + Title + " )";

            return(displayIncident);
        }
    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 #3
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 + ")");
     }
 }
Example #4
0
 public string IncidentFormat()
 {
     return("Incident for product " + ProductCode + " closed " + DateClosed.ToShortDateString() + " (" + Title + ")");
 }
Example #5
0
        public string CustomerIncidentDisplay()
        {
            string formatted = $"Incident for product {ProductCode} closed {DateClosed.ToShortDateString()} ({Title})";

            return(formatted);
        }