Example #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            InserareStadioane inst = new InserareStadioane();

            inst.Show();

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

                if (con.State == ConnectionState.Open)
                {
                    InserareStadioane ist = new InserareStadioane();
                    ist.Show();

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