Tool to generate a GUI (WinForms or WPF) from a class.
Posted
by Pat
on Stack Overflow
See other posts from Stack Overflow
or by Pat
Published on 2010-03-24T21:28:40Z
Indexed on
2010/03/24
21:33 UTC
Read the original article
Hit count: 349
Say we've got a class like
public class Doer
{
public int Timeout {get;set;}
public string DoIt(string input)
{
string toReturn;
// Do something that involves a Timeout
return toReturn;
}
}
Is there a tool that would create a Form or Control for prototyping this class? The GUI might have a NumericUpDown control with a label of "Timeout" and a GroupBox with a TextBox for "input" and a button labeled "DoIt" with an eventhandler that calls Doer.DoIt
with the Text property of the input
TextBox and puts the response in another TextBox.
© Stack Overflow or respective owner