Exemplo n.º 1
0
 private void Nextbutton_Click(object sender, EventArgs e)
 {
     if (GamecomboBox1.SelectedIndex == 0)
     {
         Add11palyerteam newteam = new Add11palyerteam();
         newteam.Show();
         this.Hide();
     }
     else if (GamecomboBox1.SelectedIndex == 1)
     {
         AddFootballTeam newteam = new AddFootballTeam();
         newteam.Show();
         this.Hide();
     }
     else if (GamecomboBox1.SelectedIndex == 2)
     {
         Add2PlayersTeamcs newteam = new Add2PlayersTeamcs();
         newteam.Show();
         this.Hide();
     }
     else if (GamecomboBox1.SelectedIndex == 3)
     {
         AddChessTeam newteam = new AddChessTeam();
         newteam.Show();
         this.Hide();
     }
     else if (GamecomboBox1.SelectedIndex == 4)
     {
         Add2PlayersTeamcs newteam = new Add2PlayersTeamcs();
         newteam.Show();
         this.Hide();
     }
     else if (GamecomboBox1.SelectedIndex == 5)
     {
         Add2PlayersTeamcs newteam = new Add2PlayersTeamcs();
         newteam.Show();
         this.Hide();
     }
 }
        private void Addbutton1_Click(object sender, EventArgs e)
        {
            dataGridView1.Visible = false;



            dataGridView6.Visible = false;



            dataGridView2.Visible = false;



            dataGridView3.Visible = false;



            dataGridView5.Visible = false;



            dataGridView4.Visible = false;



            //string res = LoginLlogic.open(Check.a);
            if (Check.a == "cricket")
            {
                Add11palyerteam Cr = new Add11palyerteam();
                Cr.ParentttFormReference = this;
                Cr.Show();
                this.Hide();
            }
            else if (Check.a == "chess")
            {
                AddChessTeam ch = new AddChessTeam();
                ch.Show();
                ch.ParentttFormReference = this;
                this.Hide();
            }
            else if (Check.a == "football")
            {
                AddFootballTeam ch = new AddFootballTeam();
                ch.Show();
                ch.ParentttFormReference = this;
                this.Hide();
            }
            else if (Check.a == "bedminton")
            {
                Addbadmentionteam ch = new Addbadmentionteam();
                ch.Show();
                ch.ParentttFormReference = this;
                this.Hide();
            }

            else if (Check.a == "ludo")
            {
                Add2PlayersTeamcs ch = new Add2PlayersTeamcs();
                ch.Show();
                ch.ParentttFormReference = this;
                this.Hide();
            }
            else if (Check.a == "tabletennis")
            {
                Addtabletanessteam ch = new Addtabletanessteam();
                ch.Show();
                ch.ParentttFormReference = this;
                this.Hide();
            }
        }