private void button2_Click(object sender, EventArgs e) { MeniuInserare mp = new MeniuInserare(); mp.Show(); this.Hide(); }
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(); } }
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(); } }
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); } }