Example #1
0
        private static void NewMethod()
        {
            string username;
            string password;

            PassBookRepositry passnool = new PassBookRepositry();

            passnool.GetTransaction("Mit");
            //   GetAllRecord g = new GetAllRecord();
            // g.getData();



            LoginRepositry login = new LoginRepositry();

            Console.WriteLine("Enter the Username");
            username = Console.ReadLine();
            Console.WriteLine("Enter the Password");
            password = Console.ReadLine();

            login.LoginValidation(username, password);
        }
Example #2
0
        private void Loginbtn_Click(object sender, EventArgs e)
        {
            username = usernameTB.Text;
            var password = passwordTB.Text;

            _flag = _login.LoginValidation(username, password);
            if (_flag == true)
            {
                usernameTB.Text    = "";
                passwordTB.Text    = "";
                _status            = true;
                usernamelabel.Text = username;
                HomeForrm homeForm = new HomeForrm();
                homeForm.GetObj(this);
                this.Hide();
                homeForm.Show();
            }
            if (_flag == false)
            {
                usernameTB.Text = "";
                passwordTB.Text = "";
                MessageBox.Show("Please check Your username and Password");
            }
        }