Note that there are some explanatory texts on larger screens.

plurals
  1. POImplementing MVC/MVP Design for TabControl ..design question
    primarykey
    data
    text
    <p>I have a an Winform application with 2 forms. In one form I have a Tab Control with 3 Tabs and navigation buttons to switch between tabs.</p> <p>On the first tab the user selects a file and on navigating to next tab i want to do some processing on the file selected in the first tab,and show the result in the 3rd tab.</p> <p>The other form just invokes this form(start app.)</p> <p>How can i do this using MVC/MVP ?</p> <p>Currently i have created nested forms. Starting application form creates instance of tab form and on SelectedIndexChanged on the tab control and matching the selected tab property I'm doing the processing in the starting application form.and On closing on the tab form setting the result in the starting application form.(which isn't ideal).</p> <p><strong>Edit</strong> : Also each tab contains a User Control which i have to initialize on tab change (refereeing to the data selected in the previous tab.) </p> <p><strong>Simple example</strong> is selecting a .zip file in the first tab , clicking next will show the list of files within the zip file and in the third tab do processing with the file selected in the 2nd tab.(there are better ways to do the same..just for sake of example.)</p> <p><strong>EDIT 2</strong> : Basically I'm confused on how to get values from first tab via controller, do processing, and pass it to the next tab( via controller) and set the user control properties on the 2nd tab (via controller).Also the Tab titles are removed ..<a href="https://stackoverflow.com/questions/25158/building-c-net-windows-application-with-multiple-views">please see</a> ..so the Tab form looks more like a wizard form. that's why i was using the SelectedIndexChanged property.</p> <p>Basically i need to separate view and processing logic from the Winform.</p> <p>Thanks All.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload