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

            managerDashboardPage.Visible = true;
            this.Visible = false;
        }
        private void BtnCancel_Click(object sender, EventArgs e)
        {
            ManagerDashboardPage managerDashboardPage = new ManagerDashboardPage(this.userinfo);

            managerDashboardPage.Visible = true;
            this.Visible = false;
        }
Ejemplo n.º 3
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 !");
     }
 }