Esempio n. 1
0
        //Override Constructor
        public AddContact(ContactDao contactDao, AddContactPresenter addContactPresenter)
        {
            InitializeComponent();

            this.m_contactDao          = contactDao;
            this.p_addcontactpresenter = addContactPresenter;
        }
        public async Task TestErrorCodesMapToDesiredTranslationsAndDisplayPopup(ResponseCode code, string title, string text)
        {
            // TODO: Navigation needs to be implemented without extensions to enable presenters to be tested
            throw new NotImplementedException();
            var navigationStub = new NavigationStub();

            var presenter = new AddContactPresenter(navigationStub);
            await presenter.Present(new AddContactResponse { Code = code });
        }
Esempio n. 3
0
        //Overloaded Constructor takes in a Model layer object.
        public PeopleForm(ContactDao contactDao)
        {
            InitializeComponent();

            AddContactPresenter addContactPresenter = new AddContactPresenter(this, contactDao);

            this.p_addcontactpresenter = addContactPresenter;
            this.m_contactDao          = contactDao;

            //Event worked fine.
            //this.Click += new System.EventHandler(UpdateFormTitleWithDateTime);
        }
        public FUpdateContact(IContactService contactService)
        {
            InitializeComponent();

            contactPresenter = new AddContactPresenter(this, contactService);
        }
 void InitializePresenter()
 {
     presenter = App.Locator.AddContactPresenter(this);
 }