Beispiel #1
0
    private void Llenar()
    {
        String Nick = Convert.ToString(Session["Admin"]);

        cdc = new ConexionLQDataContext();
        GameList.DataSource = cdc.vJuegoUsuario(Nick);
        GameList.DataBind();
    }
        private void BindGameGridData()
        {
            Dictionary <int, string> GameListByDev = GameSql.GetGameListForGrid();

            GameList.DataSource = GameListFormatted(GameListByDev);
            GameList.DataBind();

            if (GameList.Rows.Count > 0)
            {
                GameList.UseAccessibleHeader    = true;
                GameList.HeaderRow.TableSection = TableRowSection.TableHeader;
            }
            else
            {
                RemoveGames.Visible         = false;
                DeleteGameMessage.Text      = "There are no games on the server.";
                DeleteGameMessage.ForeColor = System.Drawing.Color.Red;
                DeleteGameMessage.Visible   = true;
            }
        }
        private void BindGameGridData(int devID)
        {
            Dictionary <int, string> GameListByDev = GameSql.GetGameListByDeveloperID(devID);

            GameList.DataSource = GameListFormatted(GameListByDev);
            GameList.DataBind();

            if (GameList.Rows.Count > 0)
            {
                GameList.UseAccessibleHeader    = true;
                GameList.HeaderRow.TableSection = TableRowSection.TableHeader;
            }
            else
            {
                RemoveGames.Visible         = false;
                DeleteGameMessage.Text      = "You have no games! Go to your main dashboard to upload a game!";
                DeleteGameMessage.ForeColor = System.Drawing.Color.Red;
                DeleteGameMessage.Visible   = true;
            }
        }
Beispiel #4
0
 private void llenado()
 {
     cdc = new ConexionLQDataContext();
     GameList.DataSource = cdc.vJuegos.OrderBy(x => x.Nombre);
     GameList.DataBind();
 }
 private void LlenarLista()
 {
     cdc = new ConexionLQDataContext();
     GameList.DataSource = cdc.vJuegos.Where(x => x.id_Desarrollador == idDesarrollador).OrderBy(x => x.Nombre);
     GameList.DataBind();
 }