示例#1
0
文件: HomeForm.cs 项目: keeed/DUMS
        /// <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();
        }
示例#2
0
 /// <summary>
 /// Registers this View to Model
 /// </summary>
 public void RegisterViewToModel()
 {
     _userAccountPresenter.RegisterView(typeof(IUserAccountView), this);
 }