private void BtnDashboard_Click(object sender, EventArgs e)
        {
            TicketSellerDashboardPage ticketSellerDashboardPage = new TicketSellerDashboardPage(this.employee);

            ticketSellerDashboardPage.Visible = true;
            this.Visible = false;
        }
Exemple #2
0
 private void BtnSignIn_Click(object sender, EventArgs e)
 {
     this.userinfo = Validation.SignInAuthentication(this.userList, this.txtEmail.Text.ToString(), this.txtPassword.Text.ToString());
     if (this.userinfo != null)
     {
         if (userinfo.UserType.Equals("Passenger"))
         {
             PassengerDashboardPage dashboardPage = new PassengerDashboardPage(this.userinfo);
             dashboardPage.Visible = true;
             this.Visible          = false;
         }
         else if (userinfo.UserType.Equals("Manager"))
         {
             ManagerDashboardPage dashboardPage = new ManagerDashboardPage(this.userinfo);
             dashboardPage.Visible = true;
             this.Visible          = false;
         }
         else
         {
             TicketSellerDashboardPage dashboardPage = new TicketSellerDashboardPage(this.userinfo);
             dashboardPage.Visible = true;
             this.Visible          = false;
         }
     }
     else
     {
         MessageBox.Show("Invalid Email Address or Password !");
     }
 }