public Presenter(IView view, Model model, IDisplayMenu displayMenu) { this.view = view; this.model = model; this.displayMenu = displayMenu; this.ShowDispayMenuCaller(); this.NavigationListener(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Model model = new Model(); IView view = new Form1(); IDisplayMenu displayMenu = DisplayMenu.GetInstance; IUser user = User.GetInstance; IRegister register = Register.GetInstance; IRegisteredUsers registeredUsers = RegisteredUsers.GetInstance; IDoctor doctor = Doctor.GetInstance; Presenter presenter = new Presenter(view, model, displayMenu); RegisterPresenter RegisterPresenter = new RegisterPresenter(view, model, register); UserPresenter UserPresenter = new UserPresenter(view, model, user); RegisteredUsersPresenter RegisteredUsersPresenter = new RegisteredUsersPresenter(view, model, registeredUsers); DoctorPresenter DoctorPresenter = new DoctorPresenter(view, model, doctor); Debug.WriteLine(DateTime.Now); Application.Run((Form1)view); }