예제 #1
0
        public void checkSeansOrSalonEmptyToMovieFour()
        {
            if (ChooseSalonToMovieFour.SelectedItem == null || ChooseSeansToMovieFour.SelectedItem == null)
            {
                var a = MessageBox.Show("Maybe You Don't Choose Salon or Seans!!! Let's try again");
            }
            else
            {
                var secilmisItem4 = ChooseSalonToMovieFour.SelectedItem.ToString();

                sayClick4 = true;

                //sayClick1 = false;
                //sayClick2 = false;
                //sayClick3 = false;



                switch (secilmisItem4)
                {
                case "1:Salon Nar Mobile":
                    Salon_One so = new Salon_One();
                    so.Show();
                    so.SalonName.Text = ChooseSalonToMovieFour.SelectedItem.ToString();
                    Order_Was_Given owg = new Order_Was_Given();
                    owg.AMovieName.Text = Movies.moviesName[0];
                    break;

                case "2:Salon VIP":
                    Salon_Two so2 = new Salon_Two();
                    so2.Show();
                    so2.SalonName2.Text = ChooseSalonToMovieFour.SelectedItem.ToString();
                    break;

                case "3:Salon Ergen":
                    Salon_Three so3 = new Salon_Three();
                    so3.Show();
                    so3.SalonName3.Text = ChooseSalonToMovieFour.SelectedItem.ToString();
                    break;

                case "4:Salon Sevgililer":
                    Salon_Four so4 = new Salon_Four();
                    so4.Show();
                    so4.SalonName4.Text = ChooseSalonToMovieFour.SelectedItem.ToString();
                    break;


                default:

                    break;
                }
            }
        }
예제 #2
0
        public void checkSeansOrSalonEmptyToMovieOne()
        {
            if (ChooseSalonToMovieOne.SelectedItem == null || ChooseSeansToMovieOne.SelectedItem == null)
            {
                MessageBox.Show("Maybe You Don't Choose Salon or Seans!!! Let's try again");
            }
            else
            {
                var secilmisItem = ChooseSalonToMovieOne.SelectedItem.ToString();



                switch (secilmisItem)
                {
                case "1:Salon Nar Mobile":

                    Salon_One so = new Salon_One();
                    so.Show();
                    so.SalonName.Text = ChooseSalonToMovieOne.SelectedItem.ToString();


                    break;

                case "2:Salon VIP":
                    Salon_Two so2 = new Salon_Two();
                    so2.Show();
                    so2.SalonName2.Text = ChooseSalonToMovieOne.SelectedItem.ToString();
                    break;

                case "3:Salon Ergen":
                    Salon_Three so3 = new Salon_Three();
                    so3.Show();
                    so3.SalonName3.Text = ChooseSalonToMovieOne.SelectedItem.ToString();
                    break;

                case "4:Salon Sevgililer":
                    Salon_Four so4 = new Salon_Four();
                    so4.Show();
                    so4.SalonName4.Text = ChooseSalonToMovieOne.SelectedItem.ToString();
                    break;


                default:

                    break;
                }
            }
        }