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

        cdc = new ConexionLQDataContext();
        GameList.DataSource = cdc.vJuegoUsuario(Nick);
        GameList.DataBind();
    }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
        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;
            }
        }
Exemplo n.º 4
0
 private void llenado()
 {
     cdc = new ConexionLQDataContext();
     GameList.DataSource = cdc.vJuegos.OrderBy(x => x.Nombre);
     GameList.DataBind();
 }
Exemplo n.º 5
0
 private void LlenarLista()
 {
     cdc = new ConexionLQDataContext();
     GameList.DataSource = cdc.vJuegos.Where(x => x.id_Desarrollador == idDesarrollador).OrderBy(x => x.Nombre);
     GameList.DataBind();
 }