private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == Class1.user && textBox2.Text == Class1.pass)
     {
         textBox1.Text = "";
         textBox2.Text = "";
         this.Close();
         PersonalEx i = new PersonalEx();
         i.ShowDialog();
     }
     else MessageBox.Show("Date de identificare incorecte");
 }
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == Class1.user && textBox2.Text == Class1.pass)
     {
         textBox1.Text = "";
         textBox2.Text = "";
         this.Close();
         PersonalEx i = new PersonalEx();
         i.ShowDialog();
     }
     else
     {
         MessageBox.Show("Date de identificare incorecte");
     }
 }