Exemple #1
0
        private void BtnSave_Group(object sender, RoutedEventArgs e)
        {
            Group group  = SetGroup();
            var   result = MessagesBox.ShowDialog("¿Desea agregar grupo de butacas?", MessagesBox.Buttons.Yes_No);

            if (result == "1")
            {
                SaveSeats(group);
                hallFactory.CreateHall();
                ShortNotifications.ShowDialog("Se agrego exitosamente!!!");
                this.Close();
            }
        }
        private void BtnSave_Group(object sender, RoutedEventArgs e)
        {
            Hall hall = new Hall();

            hall.Capacity   = Convert.ToInt32(txtCapacity.Text);
            hall.HallNumber = Convert.ToInt32(txtHallNumber.Text);
            var result = MessagesBox.ShowDialog("¿Esta seguro de agregar sala?", MessagesBox.Buttons.Yes_No);

            if (result == "1")
            {
                wh.Add(hall);
                hallFactory.RefreshCombobox();
                hallFactory.CreateHall();
                ShortNotifications.ShowDialog("Se añadio exitosamente!!!");
                this.Close();
            }
        }