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

  • Home
  • SEARCH
  • 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 8535929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:32:51+00:00 2026-06-11T10:32:51+00:00

I have some simple app, that I have implemented with design patterns. On the

  • 0

I have some simple app, that I have implemented with design patterns. On the way I have implemented it using MVC separation.

I have View – MainForm class, Controller – MainController class.

Controller is a singleton, so MainForm accesses it when it needs to.
MainController has as a IMainFormView interface as a composition.

MainForm class implements IMainFormView.

So, when user clicks some button, then MainForm passes some request to MainController, that computes something and performs callback on IMainFormView member to update the MainForm.

Is there Visitor pattern: IMainFormView- IVisitor and MainForm – Visitor?

  • 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-11T10:32:52+00:00Added an answer on June 11, 2026 at 10:32 am

    I sense a Strategy Pattern here. A strategy pattern lets you select a particular algorithm, which in your case is an implementation IMainFormView, at runtime.

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

Sidebar

Related Questions

Help me, Stackoverflow! I have a simple .NET 3.5 console app that reads some
i have some WinForms app (Framework to develop some simple apps), written in C#.
i have some WinForms app (Framework to develop some simple apps), written in C#.
I have setup some simple associations in my rails app: resources :properties do resources
In my app, I have a simple ASCII file which stores some config info
I have some simple constraints involving multiplication of reals in z3 that are producing
The usual case. I have a simple app that will allow people to upload
I have a really simple J2SE app that consists of a couple of classes.
I have an existing android app. I added a simple widget to it using
I implemented some app, that waits about some time before action. User can go

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.