/// <summary> /// Handles the <see cref="IInputFavInfosPresenter"/> closure /// Gives back the focus to <see cref="IMainPresenter"/> /// </summary> /// <param name="sender">Not important</param> /// <param name="e">Emtpy</param> private void FavInputCancelledEventHandler(object sender, EventArgs e) { this.favInputController = null; if (this.favoritesController == null) { this.mainController.ShouldBeEnabled(true); } else { this.favoritesController.ShouldBeEnabled(true); } }
/// <summary> /// Creates a new <see cref="IInputFavInfosPresenter"/> to answer the demand of favorite edition /// </summary> /// <param name="sender">Not important</param> /// <param name="e">Emtpy</param> private void FavModifAskedEventHandler(object sender, FavoriteModifiedEventArgs e) { this.favInputController = new InputFavInfosPresenter(new FormInputFavInfos(), this.User.Favorites, e); this.FavInputSetup(); this.favoritesController.ShouldBeEnabled(false); }