Exemplo n.º 1
0
        private void loginButton_Click(object sender, EventArgs e)
        {
            string email     = txbx_email.Text;
            string password  = txbx_password.Text;
            int    userIndex = DataBase.HasUser(email, password);

            if (userIndex != -1 && email != "" && password != "")
            {
                User user = DataBase.GetStecificUser(email);
                TicketsList.activeUser = user;
                TicketForm ticket = new TicketForm();
                ticket.Show();
            }
        }
Exemplo n.º 2
0
 static TicketsList()
 {
     tcID      = 0;
     Tickets   = new ArrayList();
     ticketFrm = new TicketForm();
 }