private void button1_Click(object sender, EventArgs e) { Pagina2 p = new Pagina2(); this.Hide(); p.ShowDialog(); this.Close(); }
private void button1_Click(object sender, EventArgs e) { if (Locatie == "" || Global.Data_Livrarii == "" || Global.Data_Predarii == "") { MessageBox.Show("Nu ati selectat toate campurile"); } else { Pagina2 s = new Pagina2(); this.Hide(); s.ShowDialog(); this.Close(); } }