mirror of
https://github.com/bvanroll/cs-oo-project.git
synced 2025-08-29 20:12:40 +00:00
yup
This commit is contained in:
41
Online Gokkantoor/Gui/updateGame.aspx.cs
Normal file
41
Online Gokkantoor/Gui/updateGame.aspx.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using Globals.classes;
|
||||
using Logic;
|
||||
|
||||
namespace Gui
|
||||
{
|
||||
|
||||
public partial class updateGame : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
Game g = (Game)System.Web.HttpContext.Current.Application["currGame"];
|
||||
thuis.Text = g.home.ToString();
|
||||
uit.Text = g.away.ToString();
|
||||
|
||||
}
|
||||
}
|
||||
public void scores(Object o, EventArgs e)
|
||||
{
|
||||
Game g = (Game)System.Web.HttpContext.Current.Application["currGame"];
|
||||
LogicLayer logic = (LogicLayer)System.Web.HttpContext.Current.Application["logic"];
|
||||
|
||||
try
|
||||
{
|
||||
int a = int.Parse(scoreThuis.Text);
|
||||
int b = int.Parse(scoreUit.Text);
|
||||
g.home.score = a;
|
||||
g.away.score = b;
|
||||
|
||||
} catch (Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user