/// <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(); }
/// <summary> /// Registers this View to Model /// </summary> public void RegisterViewToModel() { _userAccountPresenter.RegisterView(typeof(IUserAccountView), this); }