aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <marcin@zelent.net>2021-02-21 14:13:49 +0100
committermarcinzelent <marcin@zelent.net>2019-12-20 14:21:37 +0100
commitb1eb36d3fbc5012b07489454a7452e8488507f6a (patch)
treef6a9e6e561eabde5b06366a6aeac78df123ca917 /Controllers/MainController.cs
Initial commitHEADmaster
Diffstat (limited to 'Controllers/MainController.cs')
-rw-r--r--Controllers/MainController.cs28
1 files changed, 28 insertions, 0 deletions
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