Exemplo n.º 1
0
        private void createNewPlayerLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            CreatePersonForm pf = new CreatePersonForm(this);

            pf.Show();
            this.Hide();
            pf.FormClosing += closeForm;
        }
        /// <summary>
        /// Hides Team Editor form and
        /// Opens a new form specific to createNewPerson link from TeamForm
        /// When create Player button is pushed on new (child) form it closes and
        /// TeamForm is made visible again
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CreateNewPlayerLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            CreatePersonForm personForm = new CreatePersonForm(this);

            personForm.Show();
            this.Hide();
            personForm.FormClosing += personForm_FormClosing;
        }