Esempio n. 1
0
 private Seat getSeat()
 {
     Seat seat = new Seat();
     foreach (DataGridViewRow dr in dataGridView1.SelectedRows)
     {
         seat.Add(dr.Index);
     }
     return seat;
 }
Esempio n. 2
0
 //购买跳到payform中
 private Seat getSeats()
 {
     Seat seats = new Seat();
     for (int i = 0; i < this.movie.amount; i++)
     {
         if (this.choose[i])
         {
             this.choose[i] = true;
             seats.Add(i);
         }
     }
     return seats;
 }