private void RefreshContent()
        {
            if (DataManager.Assignment.Data == null)
            {
                mOngoing.Initialize(new DataBaseObject[0], null);
                mSubmitted.Initialize(new DataBaseObject[0], null);
                return;
            }

            GlobalStatus.SetSeenAssignments();

            List <DataAssignment> ongoingAssignments   = new List <DataAssignment>();
            List <DataAssignment> submittedAssignments = new List <DataAssignment>();

            for (int i = 0; i < DataManager.Assignment.Data.Length; i++)
            {
                if (DataManager.Assignment.Data[i].IsSubmitted)
                {
                    submittedAssignments.Add(DataManager.Assignment.Data[i]);
                }
                else
                {
                    ongoingAssignments.Add(DataManager.Assignment.Data[i]);
                }
            }

            ongoingAssignments.Sort((a, b) => a.EndAt.Value.CompareTo(b.EndAt.Value));

            mOngoing.Initialize(ongoingAssignments.ToArray(), InspectOngoing);
            mSubmitted.Initialize(submittedAssignments.ToArray(), InspectSubmitted);
        }
 private void CheckStatus()
 {
     if (GlobalStatus.HasNewAssignment)
     {
         GlobalStatus.SetSeenAssignments();
         DataManager.Assignment.FetchData(true);
     }
 }