This commit is contained in:
Beppe
2019-07-04 01:05:11 +02:00
parent 60eb72bd30
commit df39b0392c
67 changed files with 2147 additions and 31 deletions

View File

@@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using Globals.classes;
using Logic;
namespace Gui
{
public partial class Admin : System.Web.UI.Page
{
LogicLayer logic;
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
logic = (LogicLayer)System.Web.HttpContext.Current.Application["logic"];
listGames.DataSource = logic.games;
listGames.DataBind();
}
}
public void addUser_Click(object sender, EventArgs args)
{
Server.Transfer("addUser.aspx");
}
public void addBet_Click(object sender, EventArgs args)
{
Server.Transfer("addBet.aspx");
}
public void addMatch_Click(object sender, EventArgs args)
{
Server.Transfer("addMatch.aspx");
}
public void addPloeg_Click(object sender, EventArgs args)
{
Server.Transfer("addPloeg.aspx");
}
public void updateGame_Click(object sender, EventArgs args)
{
IList<Game> boundList2 = (IList<Game>)listGames.DataSource;
HttpContext.Current.Application["currGame"] = boundList2[listGames.SelectedIndex];
Server.Transfer("updateGame.aspx");
}
}
}