예제 #1
0
        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");
            }
        }
예제 #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     this.Hide();
     addCAR.ShowDialog();
 }