Exemplo n.º 1
0
 public FirstPage()
 {
     InitializeComponent();
     loginButton.FlatAppearance.BorderSize = 0;
     firstPagePresenter = new FirstPagePresenter(this);
     adminPresenter     = new AdministratorPresenter(this);
 }
Exemplo n.º 2
0
 public AdminForm(AdministratorPresenter presenter)
 {
     InitializeComponent();
     this.presenter              = presenter;
     authorSource                = new BindingSource();
     authorSource.DataSource     = LibraryDataIO.Instance.Authors;
     authorListBox.DataSource    = authorSource;
     authorListBox.DisplayMember = StringConstants.fullNameString;
     genreBox.DataSource         = Enum.GetValues(typeof(BookGenre));
 }
Exemplo n.º 3
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();
        }