private void MatchTrack_Load(object sender, EventArgs e) { _schedule = new Schedule(); if (!_schedule.Load($"{WorkingDirectory}{ScheduleFileName}", _teamList)) { Close(); return; } _robotData = new RobotData(); _robotData.LoadData($"{WorkingDirectory}{MatchDataFileName}"); MatchModeCombo.SelectedIndex = 0; EditGroup.Enabled = false; _pollingTimer = new Timer(); _pollingTimer.Enabled = true; _pollingTimer.Interval = Convert.ToInt16(250); _pollingTimer.Tick += new EventHandler(PollingEvent); _analytics = new Analytics(); _analytics.Load(_robotData); InitializeRankingsTab(); InitializeTeamTab(); setTeam(0); }
private void btnLoadMatchData_Click(object sender, EventArgs e) { _robotData.LoadData($"{WorkingDirectory}{MatchDataFileName}"); }