private void button_login_Click(object sender, EventArgs e) { string email = this.textBox_email.Text; string pass = this.textBox_parola.Text; if (util.userExists(email, pass)) { if (checkBox1.CheckState == CheckState.Checked) { Turismul_de_pretutindeni.Properties.Settings.Default.email = email; Turismul_de_pretutindeni.Properties.Settings.Default.Save(); } else { Turismul_de_pretutindeni.Properties.Settings.Default.email = ""; Turismul_de_pretutindeni.Properties.Settings.Default.Save(); } GLOBAL.emailGlobal = email; this.Hide(); FrmVacanta frm = new FrmVacanta(); frm.emailToolStripMenuItem.Text = email; frm.ShowDialog(); this.Close(); } else { this.textBox_email.ResetText(); this.textBox_parola.ResetText(); MessageBox.Show("Eroare Autentificare"); } }
private void button_Renunta_Click(object sender, EventArgs e) { this.Hide(); FrmVacanta frm = new FrmVacanta(); frm.ShowDialog(); this.Close(); }