예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            InserareJucatori injuc = new InserareJucatori();

            injuc.Show();

            this.Hide();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            try
            {
                SqlConnection con = new SqlConnection(sqlCon);
                con.Open();

                if (con.State == ConnectionState.Open)
                {
                    InserareJucatori ij = new InserareJucatori();
                    ij.Show();

                    this.Close();
                }
            }
            catch (Exception exp)
            {
                MessageBox.Show(exp.Message, "Eroare aparuta in urma operatiunilor desfasuarate!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }