コード例 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            MeniuInserare mp = new MeniuInserare();

            mp.Show();

            this.Hide();
        }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (Form1.UN == "Timotei")
            {
                MeniuInserare mp = new MeniuInserare();
                mp.Show();

                this.Hide();
            }
            else
            {
                MeniuInserareUser mu = new MeniuInserareUser();
                mu.Show();

                this.Hide();
            }
        }
コード例 #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (Form1.UN == "Timotei")
            {
                MeniuInserare mi = new MeniuInserare();
                mi.Show();

                this.Close();
            }
            else
            {
                MeniuInserareUser miu = new MeniuInserareUser();
                miu.Show();

                this.Close();
            }
        }
コード例 #4
0
        private void button3_Click(object sender, EventArgs e)
        {
            try
            {
                SqlConnection con = new SqlConnection(sqlCon);
                con.Open();

                if (con.State == ConnectionState.Open)
                {
                    MeniuInserare mins = new MeniuInserare();
                    mins.Show();
                    this.Hide();
                }
            }
            catch (Exception exp)
            {
                MessageBox.Show(exp.Message, "Eroare aparuta!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }