Exemplo n.º 1
0
 private void LoadPlayers(int divisionId)
 {
     var vm = new PlayerVM();
     gridPlayers.DataSource = vm.GetDivisionPlayers(divisionId);
     gridPlayers.DataBind();
     if (!gridPlayers.Visible)
         gridPlayers.Visible = true;
 }
Exemplo n.º 2
0
 private void LoadSeasonPlayers()
 {
     try
     {
         //when division is selected master Division ID is changed
         var vm = new PlayerVM();
         var players = vm.GetDivisionPlayers(Master.DivisionId);
         grdPlayers.DataSource = players;
         grdPlayers.DataBind();
     }
     catch (Exception ex)
     {
         lblError.Text = "LoadGrid::" + ex.Message;
     }
 }