示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     string name = label10.Text.ToString();
     int hallid = Int32.Parse(label11.Text);
     int seatid = Int32.Parse(label12.Text);
     string starttime = label13.Text.ToString();
     int movietime = Int32.Parse(label14.Text);
     int price = Int32.Parse(label15.Text);
     int sellerid = Int32.Parse(label16.Text);
     ticketinfo ticket = new ticketinfo { moviename =name, hallid=hallid,seatid=seatid,starttime=starttime, movietime =movietime,price=price,seller=sellerid};
     mydydp.CreateTicket(ticket);
     MessageBox.Show("订票成功!");
     this.Close();
     selectform selectfo = new selectform(name,sellerid);
     selectfo.Show();
 }
示例#2
0
 private void button3_Click(object sender, EventArgs e)
 {
     foreach (schedule s in mydydp.GetMovieTimeOneday(date, label3.Text))
     {
         int h = s.hallid;
         foreach (seatinfo seat in mydydp.GetSeatByhallid(h))
         {
             if (seat.available == false)
             {
                 seat.available = true;
                 mydydp.UpdateSeat(seat);
             }
         }
     }
     this.Close();
     selectform sele =new selectform(name,sellerid);
     sele.Show();
 }
示例#3
0
        private void button3_Click(object sender, EventArgs e)
        {
            foreach (schedule s in mydydp.GetMovieTimeOneday(date, label3.Text))
            {
                int h = s.hallid;
                foreach (seatinfo seat in mydydp.GetSeatByhallid(h))
                {
                    if (seat.available == false)
                    {
                        seat.available = true;
                        mydydp.UpdateSeat(seat);
                    }
                }
            }
            this.Close();
            selectform sele = new selectform(name, sellerid);

            sele.Show();
        }
示例#4
0
        private void button1_Click(object sender, EventArgs e)
        {
            string     name      = label10.Text.ToString();
            int        hallid    = Int32.Parse(label11.Text);
            int        seatid    = Int32.Parse(label12.Text);
            string     starttime = label13.Text.ToString();
            int        movietime = Int32.Parse(label14.Text);
            int        price     = Int32.Parse(label15.Text);
            int        sellerid  = Int32.Parse(label16.Text);
            ticketinfo ticket    = new ticketinfo {
                moviename = name, hallid = hallid, seatid = seatid, starttime = starttime, movietime = movietime, price = price, seller = sellerid
            };

            mydydp.CreateTicket(ticket);
            MessageBox.Show("订票成功!");
            this.Close();
            selectform selectfo = new selectform(name, sellerid);

            selectfo.Show();
        }
示例#5
0
 private void ToolStripMenuItem2_Click(object sender, EventArgs e)
 {
     selectform selectfo = new selectform(selectname,id);
     selectfo.Show();
 }
示例#6
0
        private void ToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            selectform selectfo = new selectform(selectname, id);

            selectfo.Show();
        }