Ejemplo n.º 1
0
        /* ==================================
         * INPUT HOME URL CONTROLLER
         * ==================================*/

        /// <summary>
        /// Creates a new <see cref="IInputHomeUrlPresenter"/> to answer the demand
        /// </summary>
        /// <param name="sender">Not important</param>
        /// <param name="e">Emtpy</param>
        private void HomeUrlInputAskedEventHandler(object sender, EventArgs e)
        {
            this.mainController.ShouldBeEnabled(false);

            this.urlController = new InputHomeUrlPresenter(new FormInputHomeUrl());
            this.urlController.ViewClosedEvent            += this.HomeUrlCancelledEventHandler;
            this.urlController.UrlInputFormSubmittedEvent += this.HomeUrlSubmittedEventHandler;

            this.urlController.Show();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Handles the <see cref="IInputHomeUrlPresenter"/> closure
 /// Gives back the focus to <see cref="IMainPresenter"/>
 /// </summary>
 /// <param name="sender">Not important</param>
 /// <param name="e">Emtpy</param>
 private void HomeUrlCancelledEventHandler(object sender, EventArgs e)
 {
     this.urlController = null;
     this.mainController.ShouldBeEnabled(true);
 }