Пример #1
0
        private void timToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form newform = new TeamForm();

            this.Hide();
            newform.Show();
        }
Пример #2
0
        private void CancelButton_Click(object sender, EventArgs e)
        {
            Form newform = new TeamForm();

            this.Hide();
            this.Close();
            newform.Show();
        }
Пример #3
0
        private void ShowTeamForm(Team team, bool modal)
        {
            TeamForm form = new TeamForm(team);

            if (modal == true)
            {
                form.ShowDialog();
            }
            else
            {
                form.Show();
            }
        }
Пример #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();
            }
        }