Ejemplo n.º 1
0
 private void chooseSeat()
 {
     if (!CheckExistForm("ChooseSeat"))
     {
         ChooseSeat sv = new ChooseSeat();
         sv.timeBeginn = timeStarted;
         sv.name       = "TheImmortal";
         sv.Show();
     }
     else
     {
         ActiveChildForm("ChooseSeat");
     }
 }
 private void chooseSeat()
 {
     if (!CheckExistForm("ChooseSeat"))
     {
         ChooseSeat sv = new ChooseSeat();
         sv.timeBeginn = timeStarted;
         sv.name       = "BadTimesAtTheELRoyale";
         sv.Show();
     }
     else
     {
         ActiveChildForm("ChooseSeat");
     }
 }
Ejemplo n.º 3
0
        private void ButtonSelectSeat_Click(object sender, RoutedEventArgs e)
        {
            var show = Model.Show.ListOfShows[ComboBoxShow.SelectedIndex];

            var chooseSeat = new ChooseSeat(show);

            chooseSeat.ShowDialog();

            if (chooseSeat.ChoosenSeat != null)
            {
                ButtonCreate.IsEnabled = true;
            }

            ChoosenSeat = chooseSeat.ChoosenSeat;
        }
Ejemplo n.º 4
0
        private void ButtonSelectSeat_Click(object sender, RoutedEventArgs e)
        {
            var show = Model.Show.ListOfShows[ComboBoxShow.SelectedIndex];

            var chooseSeat = new ChooseSeat(show);

            chooseSeat.ShowDialog();
            var choosenSeat = chooseSeat.ChoosenSeat;

            CurrentCustomer.Show.ShowRoom.ListOfSeats.First(seat => seat == CurrentSeat).IsBooked[
                CurrentCustomer.Seat.IsBooked.IndexOf(new Tuple <Model.Show, bool>(CurrentCustomer.Show, true))] =
                new Tuple <Model.Show, bool>(CurrentCustomer.Show, false);

            CurrentSeat = choosenSeat;
        }