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

            return(formatted);
        }