Esempio n. 1
0
        private void timToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form newform = new TeamForm();

            this.Hide();
            newform.Show();
        }
Esempio n. 2
0
        private void CancelButton_Click(object sender, EventArgs e)
        {
            Form newform = new TeamForm();

            this.Hide();
            this.Close();
            newform.Show();
        }
Esempio n. 3
0
        private void ShowTeamForm(Team team, bool modal)
        {
            TeamForm form = new TeamForm(team);

            if (modal == true)
            {
                form.ShowDialog();
            }
            else
            {
                form.Show();
            }
        }
Esempio n. 4
0
        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();
            }
        }