static void Main() { RegisterTypes(); researcherPresenter = _container.Resolve <ResearcherPresenter>(); administratorPresenter = _container.Resolve <AdministratorPresenter>();//new AdministratorPresenter(new AdminForm(), new FlowModelDataBase(), new DatabaseParser()); registrationPresenter = _container.Resolve <RegistrationPresenter>(); researcherPresenter.changeUser += RegistrationFormOpen; administratorPresenter.changeUser += RegistrationFormOpen; registrationPresenter.adminPass += AdminFormOpen; registrationPresenter.researcehrPass += ResearcherFormOpen; registrationPresenter.Start(); }
private static void RegistrationFormOpen(object sender, EventArgs e) { registrationPresenter.Start(); }