From b1eb36d3fbc5012b07489454a7452e8488507f6a Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Sun, 21 Feb 2021 14:13:49 +0100 Subject: Initial commit --- Controllers/MainController.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Controllers/MainController.cs (limited to 'Controllers/MainController.cs') diff --git a/Controllers/MainController.cs b/Controllers/MainController.cs new file mode 100644 index 0000000..b7167e5 --- /dev/null +++ b/Controllers/MainController.cs @@ -0,0 +1,28 @@ +using System; +using KukaPizza.Views; + +namespace KukaPizza.Controllers +{ + public class MainController : Controller + { + public MainController() + { + new MainView(this); + } + + public void OpenOrderPizza() + { + new OrderPizzaController(); + } + + public void OpenCheckOrders() + { + new CheckOrdersController(); + } + + public void Close() + { + System.Environment.Exit(0); + } + } +} \ No newline at end of file -- cgit v1.2.3