protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { StoreParticipanteHobbieId.DataSource = this.GestorDeHobbieDeParticipante.ObterTodosOsRegistros(); StoreParticipanteHobbieId.DataBind(); StoreParticipanteId.DataSource = this.GestorDeParticipante.ObterTodosOsParticipantes().OrderBy(l => l.nome); StoreParticipanteId.DataBind(); StoreItemId.DataSource = this.GestorDeItem.ObterTodosOsItems().OrderBy(l => l.nome); StoreItemId.DataBind(); StoreStatusId.DataSource = this.GestorDeStatus.ObterTodosOsStatus(); StoreStatusId.DataBind(); } }
//Lista os hobbies de participantes do banco de dados na grid protected void List() { this.GestorDeHobbieDeParticipante = new GestorDeHobbieDeParticipante(); StoreParticipanteHobbieId.DataSource = this.GestorDeHobbieDeParticipante.ObterTodosOsRegistros(); StoreParticipanteHobbieId.DataBind(); }
//Lista os hobbies de participantes do banco de dados na grid protected void List(object sender, DirectEventArgs e) { StoreParticipanteHobbieId.DataSource = this.GestorDeHobbieDeParticipante.ObterTodosOsRegistros(); StoreParticipanteHobbieId.DataBind(); }