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:
35
Online Gokkantoor/Gui/addPloeg.aspx.cs
Normal file
35
Online Gokkantoor/Gui/addPloeg.aspx.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using Globals.classes;
|
||||
using Logic;
|
||||
|
||||
namespace Gui
|
||||
{
|
||||
|
||||
public partial class addPloeg : 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"];
|
||||
|
||||
}
|
||||
}
|
||||
public void confirm_Click(object sender, EventArgs e)
|
||||
{
|
||||
Ploeg p = new Ploeg(naam.Text);
|
||||
logic = (LogicLayer)System.Web.HttpContext.Current.Application["logic"];
|
||||
logic.addPloeg(p);
|
||||
logic.save();
|
||||
HttpContext.Current.Application["logic"] = logic;
|
||||
}
|
||||
public void ret_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("Admin.aspx");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user