Ejemplo n.º 1
0
        public void Populate(Assignment assignment)
        {
            TitleLabel.Text = assignment.Title;

            string mark = null;
            if (assignment.Submission?.MarkedAt != DateTime.MinValue)
            {
                mark = assignment.Submission.Mark == null ? "已阅" : assignment.Submission.Mark.ToString();
            }
            MarkLabel.Text = mark;
        }
Ejemplo n.º 2
0
 public void Populate(Assignment assignment)
 {
     TitleLabel.Text = assignment.Title;
     CountdownLabel.Text = assignment.DueAt.DaysSince();
     DetailLabel.Text = assignment.BodyText().Oneliner();
 }