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 191203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:19:17+00:00 2026-05-11T16:19:17+00:00

I have a Server application with a GUI. Written in c#. Now I want

  • 0

I have a Server application with a GUI. Written in c#.
Now I want to use the MVC pattern for the whole Application.

Normally you have 1 Model, 1 Controller and maybe n views. Okay, I have one of everything, but I’m not sure with the Model.

My Situation:
There are 1 server state, that can be online / offline, that has a client count, etc.
This could be my “ServerModel”. I will handle the network connection through my network library and create student object if one is connected. That all happens here.
The view will be noticed if there is a new student and display a GUI element for the new student (through the controller). Now there is a action related to a special student in my view and the controller get notices “StudentChanged” and get the student that has changed.

The Question:
The controller can now change the student directly OR tell the ServerModel how to change the student.
The 2nd method seems to be overdone on the first look, but keeps the MVC design clear.
I would like to change the student directly from the controller. But I’m not sure if this violation of the MVC (student is not a model but part of a model) brings any drawbacks in later development or the flexibility of the whole code.

Greeting from Hamburg 😉

  • 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-05-11T16:19:17+00:00Added an answer on May 11, 2026 at 4:19 pm

    The Controller should collect the information that the user wants to change about the student and hand it off to the View.

    You may want to look at using the command pattern to bundle the actions needed to change the student.

    For example

    1. The User does an action on the UI that he wants to change the student
    2. The UI notifies the View that the
      user wants to change the student via
      an interface.
    3. The View execute the ChangeStudent
      CommandObject
    4. The CommandObject displays a Change Student UI that has been registered with the View by the UI when the application started up.
    5. The User interacts with the Change
      Student UI. When the user is done
      the command retrieves the information.
    6. The command modifies the model and
      closes the ChangeStudent UI.
    7. The command notified the View it is
      done.
    8. THe view tells the UI the command is
      done.
    9. The UI updates.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 155k
  • Answers 155k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There is no difference between the objects; you have a… May 12, 2026 at 10:43 am
  • Editorial Team
    Editorial Team added an answer It is parsing your query from the query parameters in… May 12, 2026 at 10:43 am
  • Editorial Team
    Editorial Team added an answer My advice is: "Don't." Let me be more specific. Using… May 12, 2026 at 10:43 am

Related Questions

I have written a server/client application using sockets in C# for .NET 3.5. I'm
I am developing a framework for various in-house CRUD apps. I've considered several MS
I am starting a project for which we will have a thin client, sending
I have a server application that receives information over a network and processes it.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.