コード例 #1
0
 public void reopen()
 {
     if (myTicket.Solved == false)
     {
         myTicket.setStatus(myTicket.oPEN);
         Console.WriteLine("The ticket is opened.");
     }
     else
     {
         Console.WriteLine("The ticket is already solved! You cannot reopen it!");
     }
 }
コード例 #2
0
 public void closeTicket()
 {
     myTicket.setStatus(myTicket.cLOSE);
     Console.WriteLine("The ticket has been closed.");
 }