Пример #1
0
        //Submit all data and check validtion for data 
        private void Submit_button_Click(object sender, EventArgs e)
        {
            this.ValidateChildren();
            FirstName = Text_box_first.Text;
            LastName = Text_box_Last.Text;
            IsAdvisor = adviser_cb.Checked;
            this.Hide();
            this.Close();
           
            RegPlayer(FirstName, LastName, IsAdvisor);



            if (comboBox1.SelectedIndex == 0)
            {
                champanshipForm champForm = new champanshipForm(this,IdPlayer,server);
                champForm.ShowDialog();
            }
            else
            {
                adviserForm adviserForm = new adviserForm(this,server, IdPlayer);
                adviserForm.ShowDialog();
            }


            this.Close();
            
        }
Пример #2
0
 // finish championship section
 private void finsih_btn_Click(object sender, EventArgs e)
 {
     this.Hide();
     adviserForm adviserForm = new adviserForm(this, this.server, playerId);
     adviserForm.ShowDialog();
     this.Close();
 }