예제 #1
0
        private void GoHome()
        {
            string job = ControllerObj.GetUserJob(UserID);

            if (job == "Admin")
            {
                AdminDashboard AdminDashboard = new AdminDashboard(UserID);
                AdminDashboard.Show();
            }
            else if (job == "Booking Clerk")
            {
                BookingClerk BookingClerk = new BookingClerk(UserID);
                BookingClerk.Show();
            }
            else if (job == "Station Manager")
            {
                StManagerDashboard stManager = new StManagerDashboard(UserID);
                stManager.Show();
            }
            else
            {
                /*
                 * TODO
                 * BOOKING CLERK
                 * MANAGER
                 * STATION MANAGER
                 */
                Welcome WelcomeWindow = new Welcome(UserID);
                WelcomeWindow.Show();
            }
            this.Close();
        }
예제 #2
0
 private void GoHome()
 {
     if (job == "Admin")
     {
         AdminDashboard AdminDashboard = new AdminDashboard(UserID);
         AdminDashboard.Show();
     }
     else if (job == "Station Manager")
     {
         StManagerDashboard stManager = new StManagerDashboard(UserID);
         stManager.Show();
     }
     else if (job == "Manager")
     {
         ManagerDashboard M = new ManagerDashboard(UserID);
         M.Show();
     }
     else
     {
         /*
          * TODO
          * BOOKING CLERK
          * MANAGER
          * STATION MANAGER
          */
         Welcome WelcomeWindow = new Welcome(UserID);
         WelcomeWindow.Show();
     }
     this.Close();
 }
        private void GoToDashboard(int ID)
        {
            string Job = ControllerObj.GetUserJob(ID);

            if (Job == "Admin")
            {
                AdminDashboard AdminDashboard = new AdminDashboard(ID);
                AdminDashboard.Show();
            }
            else if (Job == "Booking Clerk")
            {
                BookingClerk bookingclerk = new BookingClerk(ID);
                bookingclerk.Show();
            }
            else if (Job == "Manager")
            {
                ManagerDashboard Manager = new ManagerDashboard(ID);
                Manager.Show();
            }
            else if (Job == "Station Manager")
            {
                StManagerDashboard stManager = new StManagerDashboard(ID);
                stManager.Show();
            }
        }
예제 #4
0
        private void GoHome()
        {
            string job = ControllerObj.GetUserJob(UserID);

            if (job == "Admin")
            {
                AdminDashboard AdminDashboard = new AdminDashboard(UserID);
                AdminDashboard.Show();
            }
            else if (job == "Booking Clerk")
            {
                BookingClerk BookingClerk = new BookingClerk(UserID);
                BookingClerk.Show();
            }
            else if (job == "Station Manager")
            {
                StManagerDashboard stManager = new StManagerDashboard(UserID);
                stManager.Show();
            }
            else if (job == "Manager")
            {
                ManagerDashboard Manager = new ManagerDashboard(UserID);
                Manager.Show();
            }
            this.Close();
        }
예제 #5
0
 private void GoHome()
 {
     if (job == "Admin")
     {
         AdminDashboard AdminDashboard = new AdminDashboard(UserID);
         AdminDashboard.Show();
     }
     else if (job == "Station Manager")
     {
         StManagerDashboard stManager = new StManagerDashboard(UserID);
         stManager.Show();
     }
     else if (job == "Manager")
     {
         ManagerDashboard M = new ManagerDashboard(UserID);
         M.Show();
     }
     this.Close();
 }