private void cloneToolStripMenuItem_Click(object sender, EventArgs e) { string f = listView1.SelectedItems[0].Text; tabFile old = FileManager.GetTabFile(f); NewTabForm A = new NewTabForm(); DialogResult dr = A.ShowDialog(); if (dr == System.Windows.Forms.DialogResult.OK) { T = FileManager.CreateNewTabFile(A.TabName, A.TabPrefix, old.ColumnHeaders.ToArray()); listView1.Items.Add(A.TabName + ".tab"); selectTab(T); } }
private void newTabToolStripMenuItem_Click(object sender, EventArgs e) { NewTabForm A = new NewTabForm(); DialogResult dr = A.ShowDialog(); if (dr == System.Windows.Forms.DialogResult.OK) { T = FileManager.CreateNewTabFile(A.TabName, A.TabPrefix); listView1.Items.Add(A.TabName + ".tab"); } }