Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8373555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:42:17+00:00 2026-06-09T14:42:17+00:00

How are you suppose to call methods that are in the View (ie MainForm

  • 0

How are you suppose to call methods that are in the View (ie MainForm partial class) from within the Presenter. Do i have to add it to the Interface which the View implements and which is DI’d into the Presenter?

If not, what is the preferred approach?

It seems a little odd to be adding all these methods to the Interface just so i can execute UI methods in the View.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:42:18+00:00Added an answer on June 9, 2026 at 2:42 pm

    The View implements an interface. The Presenter takes this interface as constructor parameter. So only members that are part of this interface can be called from within the Presenter. If you define some other methods in your View (Form) those members should be private and the Presenter should not know anything about them.

    It seems a little odd to be adding all these methods to the Interface
    just so i can execute UI methods in the View.

    That’s how the MVP pattern works. The Presenter manipulates the view indirectly, through the interface this view implements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose (for the sake of argument) that I have a view class which contains
First suppose that I have an abstract class, let's call it AbstractClass. Suppose public
I have a view called MyViewController, that I initialize from a xib file. Its
Suppose I have an abstract class Bar that takes a type parameter: abstract class
I am trying to use a string to call a method? Suppose I have
Suppose I have the following method signature int f (int[] values) and I call
I have one doubt concerning c# method overloading and call resolution. Let's suppose I
I have a custom event handler, or I suppose some call it a custom
Suppose we are writing a class (let's call it Class) in an iPhone program.
Suppose I'm making a JDBC call and I had fetched data from a database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.