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}"); }
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()); }
public void PrintTheAssignmentOutput() { Console.WriteLine($"\t{Title,-11} {Description,-6} {SubDateTime.ToShortDateString(),-13} OralMark : {OralMark} TotalMark : {TotalMark}"); Console.WriteLine(); }