Example #1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            this.Close();
            ViewTour openViewTour = new ViewTour();

            openViewTour.Show();
        }
Example #2
0
        private void lstAllTour_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            string passtourID = lstAllTour.SelectedItems[0].SubItems[0].Text;

            LoginInfo.TourID = passtourID;
            //Check if User Login
            if (LoginInfo.UserID == "")
            {
                MessageBox.Show("Please Login to continue.");
                this.Hide();
                Login openLoginForm = new Login();
                openLoginForm.ShowDialog();
                if (LoginInfo.UserID == "")
                {
                }
                else
                {
                    this.Hide();
                    ViewTour openViewTourForm = new ViewTour();
                    openViewTourForm.Show();
                }
            }
            else
            {
                //Store in static class so other forms can get values
                ViewTour openViewTourForm = new ViewTour();
                openViewTourForm.Show();
                this.Hide();
            }

            /*ViewTour openViewTour = new ViewTour(passtourID);*/
            //openViewTour.ShowDialog();
        }
Example #3
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     if (ViewAll.LoginInfo.UserRole == "T")
     {
         if (ViewAll.LoginInfo.TourID != "")
         {
             this.Close();
             ViewTour openViewTour = new ViewTour();
             openViewTour.Show();
         }
         else
         {
             this.Close();
             ShowAllChat openAllChat = new ShowAllChat();
             openAllChat.Show();
         }
     }
     else if (ViewAll.LoginInfo.UserRole == "TG")
     {
         ShowAllChat openAllChat = new ShowAllChat();
         openAllChat.Show();
         this.Close();
     }
 }