المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Reuseability of controls



C# Programming
06-21-2009, 05:30 PM
Good Morning Fellow Coders;
I have a treeView that I have developed over the years. It has all the things that I need it to do in most of my apps including the ability for the user to persist it to a file on the hard drive.
The problem is that I use it in many apps that I write but, as I adapt it to different apps it can only open files for a the app it was compiled in.
My questions is this.
How do I re-use it and keep the ability to open any of these files from any app I use it in?

Do I create a stand-alone project for just the tree then change the namespace or do I have to make a control out of it?

Any thoughts will be appreciated...

tia
rafone

Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...