private void label1_Click_1(object sender, EventArgs e)
 {
     this.Visible = false;
     if (indexer != -1)
     {
         Scenery scenery = new Scenery();
         scenery = SceneryAccess.SelectById(SYId);
         TicketInfo ticketInfo = new TicketInfo(scenery, DTId);
         ticketInfo.Show();
     }
     else
     {
         MessageBox.Show("请选择要预订的门票");
         DistributorUser distributor = new DistributorUser(DTId);
         distributor.Show();
     }
 }
Exemple #2
0
        private void showScenery(string sceneryName)
        {
            Scenery        scenery     = new Scenery();
            List <Scenery> sceneryList = new List <Scenery>();

            sceneryList = SceneryAccess.Search(sceneryName);
            if (sceneryList.Count != 0 && sceneryList != null)
            {
                for (int i = 0; i < sceneryList.Count; i++)
                {
                    scenery = sceneryList[i];
                }
                this.Visible = false;
                TicketInfo ticketInfo = new TicketInfo(scenery, UserId);
                ticketInfo.Show();
            }
            else
            {
                MessageBox.Show("暂时没有您要找的景点");
            }
        }