/// <summary> /// this function will check if the first test is bigger than the second /// </summary> /// <param name="t"></param> /// <returns></returns> public bool IsBigger(StudentTest t) { if (this.GetDate > t.GetDate) { return(true); } else { if (this.GetDate == t.GetDate) { if (this.hour > t.hour) { return(true); } } return(false); } }
/// <summary> /// this function will check if the tests are on the same time /// </summary> /// <param name="t">StudentTest to compare with</param> /// <returns></returns> public bool IsEqual(StudentTest t) { return(this.hour == t.hour && this.GetDate == t.GetDate); }