473,699 Members | 2,768 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what is best pratice doing this?

Hey

I'm about to start developing an windows application based on .net 2.0.

The GUI will consist of 2 things: a treeview and an area displaying things
based on selections in the treeview. The treeview shows all the modules in
the application and gives easy access to each module...

Lets say I today have 5 modules I want to include in this application. But
some day in the future I may have more modules in the application....

So I was wondering if there is possible to develop the GUI for this
application and then add the modules to the program. So I in the application
can register new modules and then the treeview will show all added module
and display windows belonging to those modules... - And also I want to be
able to remove a module from the application...

The goal is to split the modules from the GUI... I think it's not a good
idea to have the modules codes together with the GUI....

Would be great if I could develop each module into it's own assembly and in
the window applicatioin I could choose to register the module and the module
gets available in the application...

I'm wondering what is the best practice doing this?

If you have links about this subject, then please post them :)

Jeff
Oct 10 '07 #1
1 1298

"Jeff" <do***@spam.mew rote in message
news:uk******** ******@TK2MSFTN GP04.phx.gbl...
I'm about to start developing an windows application based on .net 2.0.

The GUI will consist of 2 things: a treeview and an area displaying things
based on selections in the treeview. The treeview shows all the modules in
the application and gives easy access to each module...

Lets say I today have 5 modules I want to include in this application. But
some day in the future I may have more modules in the application....

So I was wondering if there is possible to develop the GUI for this
application and then add the modules to the program. So I in the
application can register new modules and then the treeview will show all
added module and display windows belonging to those modules... - And also
I want to be able to remove a module from the application...

The goal is to split the modules from the GUI... I think it's not a good
idea to have the modules codes together with the GUI....

Would be great if I could develop each module into it's own assembly and
in the window applicatioin I could choose to register the module and the
module gets available in the application...

It shouldn't be too hard to do. Compile each of your modules into a
separate dll. Make each of them inherit from the same base class, or
implement an interface that is common to all of them. This base class or
interface will have methods such as GetTextToDispla yInTreeView or
ShowModuleInter faceOnScreen.
The main program (the part with the treeview) can keep a list of
installed modules (which could be as simple as enumerating all the DLLs that
you have copied into a specific folder). For each of them, it would use
Reflection to load the assembly and create an instance of the main class
inside, then cast it to the base class or interface, and call the methods
that we defined previously to display whatever is needed in the tree and
show the interface on screen.

Oct 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

125
14757
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
46
4217
by: Keith K | last post by:
Having developed with VB since 1992, I am now VERY interested in C#. I've written several applications with C# and I do enjoy the language. What C# Needs: There are a few things that I do believe MSFT should do to improve C#, however. I know that in the "Whidbey" release of VS.NET currently
13
5040
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
3
1387
by: Tobias[br] | last post by:
hi there people... i´m developing an application where i need 190 input text, in 8 diferent forms.. anyone can tell me the best pratice to save the the data while edit the others forms? viewstate??? sessions? or database in each "next" click???
3
1494
by: thedebugger | last post by:
Dear Friends, I am working on website application in c# with asp.net. My practice using aspx files is, I have 1 main aspx files for inside pages. Whenever user hit the button like aboutus, contactus and similar buttons, also any other button from menu, it always call contentDisplay.aspx, including pageid and other ids depending upon contents. for example, aboutus button contain the url like contentDisplay.aspx?pageid=2 contactus button...
9
5249
by: Brian Hampson | last post by:
I am trying to determine all the groups which the current user has permissions to add a member. Here's my code: foreach (System.DirectoryServices.SearchResult ADSearchres in ADSearch.FindAll()) { //ActiveDs.ADSearchres.Properties
2
1905
by: kbutterly | last post by:
All, I have a menu which contains Category as the master and Product as the child. When I click on a Category in the menu, I want one formView control, fvpc, to show, and then when I click on a Product, I want a different formview, fvp, to show. Is it best to have the two forms on separate pages, productView.aspx
2
1484
by: Paulo Roberto | last post by:
Hi, I have a VS2005 asp.net 2.0 C# application with a lot of screens just like customers, companys, manufacturers wich has always the same basics working like a gridview showing the records, and the basic functions: inserting, editing and deleting records from tables... What is the best method to do/optimize that? Creating each .aspx ? Because what most changes is the fields tables... what do you suggest? Thanks
2
7853
by: xoro | last post by:
Hi, I'm getting a new problem with cursors in triggers. I would like to replace all my cursor fetching in all triggers but i did'nt know which is the best pratice. Here is a sample of my trigger code : ALTER TRIGGER . ON . FOR insert
0
8686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9173
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9033
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8911
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7748
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6533
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.