Example #1
0
        //Method that processes the City Selection
        private void CitySelection(SelectedParamterArgs esp)
        {
            IUser UserServices = new UserServices();
            IList <UserTheaterDTO> ListOfTheters = new List <UserTheaterDTO>();
            String SelectedCity  = esp.SelectedValue;
            String SelectedMovie = esp.OptionalSlectedValue;
            int    movieID       = int.Parse(SelectedMovie);

            ListOfTheters = UserServices.GetTheatersByCity(SelectedCity, movieID);
            TicketView.Model.TheaterList = new List <TheaterLine>();
            foreach (var item in ListOfTheters)
            {
                TheaterLine row = new TheaterLine();
                row.TheaterID   = item.TheaterID.ToString();
                row.TheaterName = item.TheaterName;
                row.Address     = item.TheaterAddress;
                TicketView.Model.TheaterList.Add(row);
            }
        }
 //Method that processes the City Selection
 private void CitySelection(SelectedParamterArgs esp)
 {
     IUser UserServices = new UserServices();
     IList <UserTheaterDTO> ListOfTheters = new List<UserTheaterDTO>();
     String SelectedCity = esp.SelectedValue;
     String SelectedMovie = esp.OptionalSlectedValue;
     int movieID = int.Parse(SelectedMovie);
     ListOfTheters = UserServices.GetTheatersByCity(SelectedCity,movieID);
     TicketView.Model.TheaterList = new List<TheaterLine>();
     foreach (var item in ListOfTheters)
     {
         TheaterLine row = new TheaterLine();
         row.TheaterID = item.TheaterID.ToString();
         row.TheaterName = item.TheaterName;
         row.Address = item.TheaterAddress;
         TicketView.Model.TheaterList.Add(row);
     }
 }