public CarSearch(string email) { InitializeComponent(); addCAR = new AddCAR(email); Welcome(email); CarMarka(); City(); Year(); }
private void button6_Click(object sender, EventArgs e) { Users users = new Users(); UserSignInModel userSignIn = new UserSignInModel(); userSignIn.Email = txbx_email.Text; userSignIn.Password = txbx_password.Text; dbContext.GetAllData(users.GetType()); Table <Users> data = dbContext.userData; if (DbExtensions.HasUserByEmail(data, userSignIn.Email) && DbExtensions.HasUserByPassword(data, userSignIn.Password)) { AddCAR addCAR = new AddCAR(userSignIn.Email); this.Hide(); addCAR.ShowDialog(); } else { MessageBox.Show("Bele Bir User Qeydiyyatdan Kecmeyib"); } }