Ejemplo n.º 1
0
        private void AddSeatitems()
        {
            foreach (Seat seat in App.SeatData.lstSeat)
            {
                SeatControl seatControl = new SeatControl();
                seatControl.Setseat(seat);

                lstSeat.Items.Add(seatControl);
            }
        }
Ejemplo n.º 2
0
        private void LstSeat_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (lstSeat.SelectedIndex == -1)
            {
                return;
            }

            SeatControl seatControl = lstSeat.SelectedItem as SeatControl; //선택된 SeatCtrl에
            int         id          = seatControl.GetSeatId();             // seat id를 가져오기

            //OrderControl 보이기
            orderControl.Visibility = Visibility.Visible;

            // Seat 번호 order에 넘기기? order에 설정하기?
            orderControl.SetSeatIdOnOrder(id);

            lstSeat.SelectedIndex = -1;
        }