-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
46 lines (40 loc) · 1.52 KB
/
Program.cs
File metadata and controls
46 lines (40 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using TipManager.View;
using TipManager.Presenter;
using TipManager.UserControls;
using TipManager.Model;
using TipManager.Services;
namespace TipManager
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
form = new Form1();
TipManagerModel tipManager = new TipManagerModel();
TipManagerServices services = new TipManagerServices(tipManager);
Home homeView = new Home();
AddTip addTipView = new AddTip();
Transaction transactionView = new Transaction();
TipManagerPresenter tipManagerPresenter = new TipManagerPresenter(form, homeView, addTipView, transactionView);
HomePresenter homePresenter = new HomePresenter(homeView, tipManager, services);
AddTipPresenter addTipPresenter = new AddTipPresenter(addTipView, tipManager, services);
TransactionPresenter withdrawPresenter = new TransactionPresenter(transactionView, tipManager, services);
form.Controls.Add(homeView);
form.Controls.Add(addTipView);
form.Controls.Add(transactionView);
Application.Run(form);
}
static Form1 form;
}
}