private static void ShowText(StringCollection sc) { TextForm form = new TextForm(); form.DisplayText(sc); form.Show(); }
private void WithoutDependenciesMenuItem_Click(object sender, EventArgs e) { Table table; TextForm form; // Just make sure something is selected if (this.TableListView.SelectedIndices.Count == 0) { return; } // It's the first one as we only allow one selection table = (Table)(this.TableListView.SelectedItems[0].Tag); form = new TextForm(); form.DisplayText(table.Script()); form.Show(); }