private void button1_Click(object sender, EventArgs e) { var visa = new Testare(user, comboBox1.SelectedItem.ToString(), true); Hide(); visa.Show(); visa.Closed += (s, args) => Close(); }
private void button1_Click(object sender, EventArgs e) { using (var db = new EntityFBio()) { string test, clasa; clasa = functii.getClasa(user); test = functii.GetTest(clasa); Testare visa = new Testare(user, test, false); Hide(); visa.Closed += (s, args) => Close(); visa.Show(); } }