Avatar of ianinspain
ianinspain
 asked on

500pts: Class project (dll) to store forms also? OOP design question

Hi there,

I wonder if anybody can confirm something for me...

I am about to start a new project and i want to go about it the right way.

My project initially will consist of main winform project with class projects (dll) like Security, and Property.

Would i be in saying its best to put the Login Form and Change password form into the DLL (security) so i can call this from my main app?

I hope so :-) ... i presume that each dll should be a module within itself and not rely on other parts of the program, of course they need to be able to talk .... but keeping them separate and in the future instead of my main app wanting to talk to my security DLL then there is no reason something else cannot?

I hope someone can help with this doubt i have

Thanks in advance

Ian
C#

Avatar of undefined
Last Comment
ianinspain

8/22/2022 - Mon
SOLUTION
atoth

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
GaryFrancisLond

Yes.

I would say that this would be the best way to implement what you are saying is store classes and forms that relate to each other and work to accomplish one task (e.g. security) should all be handled within the same assembly (dll).

You are also correct in saying that the SEcurity.dll can then be re-used by other projects you create in the future.

Regards,

Gary Francis
Software Developer
http://www.ssil.co.uk
ianinspain

ASKER
thanks for your comments, so to confirm... for example ... all my security stuff should go into my assembly dll "security" including any forms that relate directly to the security... or would it be better to keep the forms in the main app...

This is where i am a little confused on the best way to go about things?

Thanks in advance

Ian
ASKER CERTIFIED SOLUTION
GaryFrancisLond

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ianinspain

ASKER
thanks everyone for all your comments, i have split points..

thanks again!

Ian
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck