Exemple #1
0
        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();
        }
Exemple #2
0
 private static void RegistrationFormOpen(object sender, EventArgs e)
 {
     registrationPresenter.Start();
 }