Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32059

Design Patterns - winforms controls

$
0
0
Hello

I wanted using factory pattern create Winform controls and add them to forms dynamically.Their methods too.
ITools
{
Button getbutton();
TextBox gettextbox(); 

Class myClass:ITools
{
Button getbutton()
{
Button btn = new Button();
}
}
And then factories.
So, I want to make my code more flexible.Free.What do you think this will help me?How flexible?
Thanks in advance

Viewing all articles
Browse latest Browse all 32059

Trending Articles