public static InputFormResult ShowModal(System.Windows.Forms.IWin32Window owner, string caption, string title, string defaultText) { InputForm theForm = new InputForm(); theForm.InitializeComponent(); theForm.lblCaption.Text = caption; theForm.Text = title; theForm.txtInput.Text = defaultText; theForm.ShowDialog(owner); return GetResult(theForm); }
public static InputFormResult ShowModal(System.Windows.Forms.IWin32Window owner, string caption, string title, string defaultText) { InputForm theForm = new InputForm(); theForm.InitializeComponent(); theForm.lblCaption.Text = caption; theForm.Text = title; theForm.txtInput.Text = defaultText; theForm.ShowDialog(owner); return(GetResult(theForm)); }