public InputFavInfosPresenter(IInputFavInfosView view, FavoritesRepository favorites, FavInputAskedEventArgs e)
        {
            this.view      = view;
            this.favorites = favorites;

            this.mode = InputFavMode.CREATION;
            this.FinishSetup(e.Name, e.Url);
        }
Ejemplo n.º 2
0
        /* ==================================
         * FAVORITES INPUT CONTROLLER
         * ==================================*/

        /// <summary>
        /// Creates a new <see cref="IInputFavInfosPresenter"/> to answer the demand of favorite creation
        /// </summary>
        /// <param name="sender">Not important</param>
        /// <param name="e">Emtpy</param>
        private void FavInputAskedEventHandler(object sender, FavInputAskedEventArgs e)
        {
            this.favInputController = new InputFavInfosPresenter(new FormInputFavInfos(), this.User.Favorites, e);
            this.FavInputSetup();
            this.mainController.ShouldBeEnabled(false);
        }