コード例 #1
0
 public void OutputAssignment()
 {
     Console.WriteLine($"{Title,-12}|{Description,-15}|{SubDateTime.ToString("dd/MM/yyyy"),-12}|{OralMark,-10}|{TotalMark,-10}");
 }
コード例 #2
0
 public override string ToString()
 {
     return(String.Format("{0, -14} {1, -30} {2, -84} {3, -21} {4, -21} {5, -19}", AssignmentId, Title, Description, SubDateTime.ToString("dd'/'MM'/'yyyy HH:mm:ss"), OralMark, TotalMark));
 }
コード例 #3
0
 public override string ToString()
 {
     return($"{ID}. {Title} \n" +
            $"      {Description}\n" +
            $"      Due Submission: {SubDateTime.ToString("dd/MM/yyyy")}");
 }
コード例 #4
0
 public void DisplayAssignment()
 {
     Console.WriteLine($"{CommonTools.CutString(Title, 15),-15} | {SubDateTime.ToString("dd/MM/yyyy"),-11} | {OralMark,-11} | {TotalMark,-12}| {CommonTools.CutString(Description, 55),-55} |");
 }
コード例 #5
0
 public void OutputSubDate()
 {
     Console.WriteLine($"Submission Date: {SubDateTime.ToString("dd/MM/yyyy")} ");
 }
コード例 #6
0
 public void PrintAssignment()
 {
     Console.WriteLine($"{Title,-33} {Description,-25}  {SubDateTime.ToString("dd/MM/yyyy"),-15}  {OralMark,-10}  {TotalMark,-10}");
 }