Example #1
0
        private void uxTeamRosterButton_Click(object sender, EventArgs e)
        {
            Hide();
            var teams = new TeamDetails(runnerController.GetRunner(Program.currentUser.UserId).TeamId);

            teams.Closed += (s, args) => Close();
            teams.Show();
        }
Example #2
0
        private void uxTeamsListBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            Team team = teamController.FetchTeam(uxTeamsListBox.SelectedItem.ToString());

            Hide();
            var teamDetails = new TeamDetails(team.TeamId);

            teamDetails.Closed += (s, args) => Close();
            teamDetails.Show();
        }