Exemple #1
0
        /// <summary>
        /// Initalizes dependencies.
        /// </summary>
        public void InitializeDepdencies()
        {
            _userAccountPresenter = new UserAccountPresenter();

            userControls.UserAccountPresenter             = _userAccountPresenter;
            userAccountTable.UserAccountPresenter         = _userAccountPresenter;
            userAccountSearchControl.UserAccountPresenter = _userAccountPresenter;

            userControls.RegisterViewToModel();
            userAccountTable.RegisterViewToModel();

            userControls.userAccountTable = userAccountTable;

            _userAccountPresenter.RegisterView(typeof(IUserAccountView), this);

            retrieveData();
        }
Exemple #2
0
 /// <summary>
 /// Registers this View to Model
 /// </summary>
 public void RegisterViewToModel()
 {
     _userAccountPresenter.RegisterView(typeof(IUserAccountView), this);
 }