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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:37:23+00:00 2026-06-03T06:37:23+00:00

I am new to event driven development, and I feel lost when I try

  • 0

I am new to event driven development, and I feel lost when I try to implement events that should pass the core/UI boundary.

In my program I have the following (example in c#):

UI.RuleForm   Core.RuleList     UI.ResultForm
Cell 1        Rule 1
Cell 2        Rule 2
Cell 3        Rule 3

What I want is:
when a RuleForm cell changes, it will update the corresponding rule in RuleList. And when the RuleList changes, the resultFrom will be recalculated from the rules.

My current thought is that, in order to keep core logic separated from UI logic (i.e. core should know nothing about UI), core should then only generate events, but not processing events generated by others.

So I have to create some kind of UI.RuleListWrapper which can process RuleForm change events, updating Core.RuleList. RuleList in term should fire OnChange events that UI.ResultForm can use.

So in summary, my questions are:

I want to know if my reasoning and purposed implementation is okay or not, which probably means: should a core module be able to process events generated by outside UI
Is my separation some kind of “mysophobia”, or has it been done before.
Are there other better approaches?

  • 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-03T06:37:25+00:00Added an answer on June 3, 2026 at 6:37 am

    You set the mvc tag. In MVC you have a MODEL containing the data and the business logic (or domain specific logic, if you prefer). You have a VIEW which displays the data and accepts user input. The view contains a strict minimum of code. Finally you have a CONTROLLER, which ties view and model together and orchestrates the whole thing.

    The missing part in your example is the controller.

    The MVC pattern exposes a general idea but does not specify any implementation details. Therefore you will find implementations of MVC that working quite differently.

    The model does not know anything about the view or the controller. Usually the view does not know the controller. The main challenge of implementing MVC is to find an adequate way to communicate between M, V and C. I think that it is a good idea to take advantage of object-data binding when working with .NET and directly bind the view to the model. (This might not be “pure” MVC, but this does not hurt anybody.) The model should implement INotifyPropertyChanged. It allows the model to communicate with the view and the controller without knowing any details about them. The controller can optionally subscribe to the PropertyChanged event of the model in order to take appropriate actions when a property has changed, like telling the view to enable or disable a control, for instance. The controller would also subscribe button click events of the view and trigger the appropriate actions.

    The controller can also communicate with other controllers, allowing you to display the result of an operation in one M-V-C trio on another view.

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

Sidebar

Related Questions

I need a custom event that should raise if a new/existing file in a
I am creating an event driven class so that when I pass it a
I read that the new delegate method can attach more than one event to
How do you make a event-driven program where the execution of the main flow
I've got an event-driven network server program. This program accepts connections from other processes
Is there anyway to encorporate Dragon NaturallySpeaking into an event driven program? My boss
My understanding is that Node is an 'Event' driven as opposed to sequentially driven
.NET Framework: 2.0 Preferred Language: C# I am new to TDD (Test Driven Development).
I've got an event-driven chatbot and I'm trying to implement spam protection. I want
I'm fairly new at event driven programming and using MVC so forgive me if

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.