Ejemplo n.º 1
0
        //main constructor
        public regChampionships(champanshipForm cForm)
        {
            InitializeComponent();
            pictureStremByte = null;
            this.cForm = cForm;

        }
Ejemplo n.º 2
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();
            
        }