public void SetLiveVideos() { if (GroupNumber.Equals("0") || WeekNumber.Equals("0")) { return; } _serviceAgent.SetLiveVideos(GroupNumber, WeekNumber, SelectedVideoInput, SelectedHomeTeams, SelectedAwayTeams); }
public void Test_WeekNumber_Parse_4() { var input = "1-3,7-9,11,13"; var expected = new WeekNumber(new List <int> { 1, 2, 3, 7, 8, 9, 11, 13 }); var actual = WeekNumber.Parse(input); Assert.True(expected.Equals(actual)); }
public void Test_WeekNumber_Parse_2() { var input = "1-5"; var expected = new WeekNumber(new List <int> { 1, 2, 3, 4, 5 }); var actual = WeekNumber.Parse(input); Assert.True(expected.Equals(actual)); }
public void Test_WeekNumber_Parse_5() { var input = "1-3,4,5,11-14"; var expected = new WeekNumber(new List <int> { 1, 2, 3, 4, 5, 11, 12, 13, 14 }); var actual = WeekNumber.Parse(input); Assert.True(expected.Equals(actual)); }
public bool EqualsExceptNumberAndVenue(Slot b) { return (SubjectName == b.SubjectName && Type == b.Type && Day.Equals(b.Day) && StartTime.Equals(b.StartTime) && EndTime.Equals(b.EndTime) && WeekNumber.Equals(b.WeekNumber) ); }
public bool Equals(Slot b) { return (SubjectName == b.SubjectName && Code == b.Code && Number == b.Number && Type == b.Type && Venue == b.Venue && Day.Equals(b.Day) && StartTime.Equals(b.StartTime) && EndTime.Equals(b.EndTime) && WeekNumber.Equals(b.WeekNumber)); }
public void ChangeColors() { const string DarkGreen = "#FF006400"; const string DarkRed = "#FF8B0000"; string group = "-" + GroupNumber; const string reset = "-0"; EnableButton = !WeekNumber.Equals("0") && !GroupNumber.Equals("0"); if (group.Equals(reset)) { ResetColor(); return; } for (int i = 0; i <= 15; i++) { if (SelectedVideoInput[i] != null) { Brushes[i] = SelectedVideoInput[i].Contains(@group) ? DarkGreen : DarkRed; } } }
// TODO: Add methods that will be called by the view public void GetTeams() { EnableButton = !WeekNumber.Equals("0") && !GroupNumber.Equals("0"); SelectedAwayTeams = _serviceAgent.GetSelecetedAwayTeams(WeekNumber); SelectedHomeTeams = _serviceAgent.GetSelectedHomeTeams(WeekNumber); }