Пример #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            DepartmentPresenter presenter = new DepartmentPresenter();
            Form mainForm = presenter.ShowForm();

            if (presenter.ShowForm() != null)
            {
                Application.Run(mainForm);
            }
        }
Пример #2
0
 public void Page_Init(object sender, EventArgs e)
 {
     _presenter = new DepartmentPresenter(this, ObjectFactory.GetInstance <DepartmentService>());
 }
Пример #3
0
 public FrmXtraDepartmentDetail()
 {
     InitializeComponent();
     _departmentPresenter  = new DepartmentPresenter(this);
     _departmentsPresenter = new DepartmentsPresenter(this);
 }