Link to home
Start Free TrialLog in
Avatar of Indunil Sanjeewa Amarasinghe
Indunil Sanjeewa AmarasingheFlag for Sri Lanka

asked on

Preventing Methods stacking in c#

Dear Sir/Madam,

I need to find out how best I can avoid methods stacking in a C# windows application like this?
Its a project I have already done to some extent. I just need to make improvements to it.

What is the best approach I can apply to avoid this situation?
I have a lot of controls added to the forms as well.

A();
B();
C();
D();
E();
F();

Kind Regards,
Indunil Sanjeewa
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

>>What is the best approach I can apply to avoid this situation?

Well you could put all the code into one method so it will just be
A();
but I would not advise that in terms of writing nicely structured code.  Maybe you aren't being clear but I do not see anything wrong in principle with:
A();
B();
C();
D();
E();
F();
@AndyAinscow  You're not the only one that is not clear on the askers objective
ASKER CERTIFIED SOLUTION
Avatar of Dmitry G
Dmitry G
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Most clear answer to an unclear question