passive-view

How to Structure a C# WinForms Model-View-Presenter (Passive View) Program?

荒凉一梦 提交于 2021-02-05 13:54:18
问题 I am designing a GUI that has the following basic idea (similarly modeled after Visual Studio's basic look-and-feel): File navigation Control selector (for selecting what to display in the Editor component) Editor Logger (errors, warnings, confirmation, etc.) For now, I will be using a TreeView for file navigation, a ListView for selecting controls to be displayed in the Editor and a RichTextBox for the Logger. The Editor will have 2 types of editing modes depending on what is selected in the

How do you communicate between presenter and view in MVP scheme?

六眼飞鱼酱① 提交于 2019-12-25 05:12:00
问题 Basically there is two options as I know. The first is view expose notifications events which a presenter should be subscribed to. When user clicks on some button on the view, view just triggers some event, notifies that something is changed. The second is just use an observer pattern and let the presenter interfere some contract. Let it be an interface with methods like events I told you above. An presenter-observer should be attached to the view. As Jeremy Miller in his legendary "Build

How do you communicate between presenter and view in MVP scheme?

眉间皱痕 提交于 2019-12-25 05:11:39
问题 Basically there is two options as I know. The first is view expose notifications events which a presenter should be subscribed to. When user clicks on some button on the view, view just triggers some event, notifies that something is changed. The second is just use an observer pattern and let the presenter interfere some contract. Let it be an interface with methods like events I told you above. An presenter-observer should be attached to the view. As Jeremy Miller in his legendary "Build

passive view and display logic

那年仲夏 提交于 2019-12-11 06:29:16
问题 In MVC and MVP and similar patterns there's often the approach of the "passive view" which is as stupid (contains as few logic) as possible. This should facilitate unit testing and create a clearer separation of view and model. I know that those patterns come in very different flavours and especially the understanding of MVP seems to differ from article to article. Therefore my question is not "how do i implement this pattern correctly". I want to improve view and model separation and go for

What Alternatives Are There to Model-View-Controller? [closed]

我只是一个虾纸丫 提交于 2019-12-03 03:37:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . While going through university and from following the development of SO, I've heard a lot about the Model-View-Controller architectural design pattern. I inadvertently used the MVC pattern even before I knew what it was, and still use it in my everyday job. From what I've seen, it's probably the most popular

What is the right way to wire together 2 javascript objects?

℡╲_俬逩灬. 提交于 2019-11-30 03:29:17
I'm currently facing a conundrum: What is the right way to wire together 2 javascript objects? Imagine an application like a text editor with several different files. I have some HTML page that represents the view for the notebook. I have a file notebook.js that contains class definitions for NotebookController and Notebook View. NotebookControler object responsible for performing business logic on the Notebook like "Save Notebook," "Load Notebook," "New Notebook." NotebookView is responsible for managing the HTML that is used for presentation. It does low level stuff like "get/set notebook

C# WinForms Model-View-Presenter (Passive View)

天大地大妈咪最大 提交于 2019-11-29 19:46:18
I'm developing a WinForms application in C#. I have limited experience in GUI programming, and I am having to learn a great deal on the fly. That being said, here's what I am building. See the general GUI look at the following link: GUI http://img227.imageshack.us/img227/1084/program0.jpg Now, I have done a lot of the work already, but in the very bad Autonomous design pattern. I did not know the project would ever reach a certain size, and, as such, it is time to do some major refactoring. I have been studying a great deal about GUI design patterns, and the pattern I am wishing to implement

What is the right way to wire together 2 javascript objects?

。_饼干妹妹 提交于 2019-11-29 01:04:04
问题 I'm currently facing a conundrum: What is the right way to wire together 2 javascript objects? Imagine an application like a text editor with several different files. I have some HTML page that represents the view for the notebook. I have a file notebook.js that contains class definitions for NotebookController and Notebook View. NotebookControler object responsible for performing business logic on the Notebook like "Save Notebook," "Load Notebook," "New Notebook." NotebookView is responsible

C# WinForms Model-View-Presenter (Passive View)

半腔热情 提交于 2019-11-28 15:35:02
问题 I'm developing a WinForms application in C#. I have limited experience in GUI programming, and I am having to learn a great deal on the fly. That being said, here's what I am building. See the general GUI look at the following link: GUI http://img227.imageshack.us/img227/1084/program0.jpg Now, I have done a lot of the work already, but in the very bad Autonomous design pattern. I did not know the project would ever reach a certain size, and, as such, it is time to do some major refactoring. I