diff options
Diffstat (limited to 'Controllers/MainController.cs')
-rw-r--r-- | Controllers/MainController.cs | 28 |
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 |