Пример #1
0
        private void BtnOk_Click(object sender, EventArgs e)
        {
            string Username = txtUsername.Text;
            string Password = txtPassword.Text;

            if (Username.Trim() == "")
            {
                txtUsername.BackColor = Color.Red;
                txtPassword.Focus();
                return;
            }
            if (Password.Trim() == "")
            {
                txtPassword.BackColor = Color.Red;
                txtPassword.Focus();
                return;
            }


            AdministrationBLL administration = new AdministrationBLL();

            StatcioniAutobusave.BO.User user = administration.userlogin(Username, Password);

            if (user == null)
            {
                MessageBox.Show("Kontrolloni username/password ");
            }
            else
            {
                this.Close();
            }
            btnrezervo frm = new btnrezervo();
        }
Пример #2
0
        private void dgwusermanagment_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int index = e.RowIndex;

            if (index < 0)
            {
                return;
            }
            StatcioniAutobusave.BO.User user = (BO.User)dgvusermanagment.Rows[index].DataBoundItem;
        }