static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); DepartmentPresenter presenter = new DepartmentPresenter(); Form mainForm = presenter.ShowForm(); if (presenter.ShowForm() != null) { Application.Run(mainForm); } }
public void Page_Init(object sender, EventArgs e) { _presenter = new DepartmentPresenter(this, ObjectFactory.GetInstance <DepartmentService>()); }
public FrmXtraDepartmentDetail() { InitializeComponent(); _departmentPresenter = new DepartmentPresenter(this); _departmentsPresenter = new DepartmentsPresenter(this); }