예제 #1
0
 public void PrintTheAssignmentEntry()
 {
     Console.ForegroundColor = ConsoleColor.Cyan;
     Console.Write($"\n\tEntry completed succesfully : ");
     Console.ForegroundColor = ConsoleColor.White;
     Console.WriteLine($"\t{Title} {Description} , {SubDateTime.ToShortDateString(),-11} OralMark : {OralMark} TotalMark : {TotalMark}");
 }
예제 #2
0
 public void Output()
 {
     Console.WriteLine(Title);
     Console.WriteLine(Description);
     Console.WriteLine(SubDateTime.ToShortDateString());
     Console.WriteLine(OralMark);
     Console.WriteLine(TotalMark);
 }
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append($"AssignmentID: {AssignmentId} \n");
            sb.Append($"AssignmentTitle: {AssignmentTitle} \n");
            sb.Append($"Description: {Description} \n");
            sb.Append($"SubDateTime: {SubDateTime.ToShortDateString()} \n");
            sb.Append($"OralMark: {OralMark} \n");
            sb.Append($"TotalMark: {TotalMark} \n");
            return(sb.ToString());
        }
예제 #4
0
 public void PrintTheAssignmentOutput()
 {
     Console.WriteLine($"\t{Title,-11} {Description,-6} {SubDateTime.ToShortDateString(),-13} OralMark : {OralMark} TotalMark : {TotalMark}");
     Console.WriteLine();
 }