private void timToolStripMenuItem_Click(object sender, EventArgs e) { Form newform = new TeamForm(); this.Hide(); newform.Show(); }
private void CancelButton_Click(object sender, EventArgs e) { Form newform = new TeamForm(); this.Hide(); this.Close(); newform.Show(); }
private void ShowTeamForm(Team team, bool modal) { TeamForm form = new TeamForm(team); if (modal == true) { form.ShowDialog(); } else { form.Show(); } }
private void ShowTeamForm(string abbrev, bool modal) { Team team = league.GetTeamByAbbrev(abbrev); if (team == null) { MessageBox.Show("Invalid team"); return; } TeamForm form = new TeamForm(team); if (modal == true) { form.ShowDialog(); } else { form.Show(); } }