public static void ShowDialog(IWin32Window parent, string text) { ExportForm form = new ExportForm(); form.textBox1.Text = text; form.ShowDialog(parent); }
private void _exportButton_Click(object sender, EventArgs e) { ExportForm.ShowDialog( this, XmlProvider.WriteToString( FromSettings((ExplorerBarSettings)_propertyGrid.SelectedObject) ) ); }