Champika,
I would also recommend Martin Fowler's book on Refactoring.
http://www.refactoring.com
I would further recommend his book "Patterns of Enterprise Application
Architecture"
http://www.martinfowler.com/books.html#eaa
Specifically (in your case based on your description of handlers) the Plugin
Pattern:
http://www.martinfowler.com/eaaCatalog/plugin.html
And the closely related Separated Interface Pattern:
http://www.martinfowler.com/eaaCatal...Interface.html
Using System.Type.GetType combined with System.Activator.CreateInstance is
how I implement my plugins. (your handlers?) You can store the full type
name of the plugin in the app.config, which is passed to Type.GetType. The
string needs to be in the format "mynamespace.myclass, myassembly".
Also, if you have not read it, "Design Patterns - Elements of Reusable
Object-Oriented Software" from Addison Wesley by GOF (gang of four) Erich
Gamma, Richard Helm, Ralph Johnson, John Vlissides is worth a look. It gives
you (some of) the patterns that you would be using Refactoring to achieve.
For example the State pattern is useful to coordinate 'tool' selection
(handler?) with mouse & keyboard events.
Hope this helps
Jay
"Champika Nirosh" <cn*****@textcentric.lk> wrote in message
news:et****************@TK2MSFTNGP12.phx.gbl...
Hi All,
We have developed stand alone application and it was started small and now
has become big and we are on our way to structure it. (Thought a backward
process we got to do it)
So right now we have some hanlder class which keep details (properties) of
each models and they are responsible for some core operation as well like
storing data retrieving data (form XMLs) and managing each component etc.
They are manager class which are responsible for all the initialization
and updation of each component as a request come from the UI part. As an
example if user click on a button (Note the manager handle only the core operation
and all the other minor operation handled by the UI directly communicating
with handlers) the manager know which handlers to use for the operation
and what mehtod to call and which variable to update and all...
There the last is the UI...
But I have no idea about these architectures... so can any body help me to
find a architecture that suit for my current class structure so then I can
standerdize it and strucutre it with least modification.
Thanks,
Nirosh