Exemplo n.º 1
0
        public void yearSelector_YearSelected(object sender, PhishPond.Concrete.EventArgs.SelectYearCommandEventArgs e)
        {
            var showService = new ShowService(Ioc.GetInstance <IShowRepository>());
            var shows       = showService.GetShowsByYear(e.Year);

            rptShows.DataSource = shows;
            rptShows.DataBind();
        }
Exemplo n.º 2
0
        public void yearSelector_YearSelected(object sender, PhishPond.Concrete.EventArgs.SelectYearCommandEventArgs e)
        {
            var myShowService = new MyShowService(Ioc.GetInstance <IMyShowRepository>());

            var userId = new Guid(Membership.GetUser(User.Identity.Name).ProviderUserKey.ToString());

            var shows = myShowService.GetShowsFromMyShowsForUser(userId, e.Year);

            rptShows.DataSource = shows;
            rptShows.DataBind();
        }
        public void yearSelector_YearSelected(object sender, PhishPond.Concrete.EventArgs.SelectYearCommandEventArgs e)
        {
            var showService = new ShowService(Ioc.GetInstance <IShowRepository>());

            var shows = showService.GetShowsByYear(e.Year);

            ddlShows.Items.Clear();

            ddlShows.Items.AddRange((from s in shows
                                     select new ListItem(s.GetShowName(), s.ShowId.ToString())).ToArray());
        }
Exemplo n.º 4
0
        public void yearSelector_YearSelected(object sender, PhishPond.Concrete.EventArgs.SelectYearCommandEventArgs e)
        {
            var year = e.Year;

            var showService = new ShowService(Ioc.GetInstance <IShowRepository>());
            var show        = showService.GetShowsByYear(year);

            var scriptHelper = new ScriptHelper("SuccessAlert", "alertDiv", show.First().GetShowName());

            Page.RegisterStartupScript(scriptHelper.ScriptName, scriptHelper.GetSuccessScript());
        }
Exemplo n.º 5
0
 public void yearSelector_YearSelected(object sender, PhishPond.Concrete.EventArgs.SelectYearCommandEventArgs e)
 {
     BindFromYear(e.Year);
 }
Exemplo n.º 6
0
 public void yearSelector_YearSelected(object sender, PhishPond.Concrete.EventArgs.SelectYearCommandEventArgs e)
 {
     GetTicketStubs(e.Year);
 }