private void exportToolStripMenuItem_Click(object sender, EventArgs e) { ExportForm frmExporter = new ExportForm(); frmExporter.Show(); }
private void m_Export_Click(object sender, EventArgs e) { using (ExportForm ef = new ExportForm { SourceLocator = m_OurLocatorValue, AvailableBands=m_ContactStore.GetAllBands() }) { DialogResult dr = ef.ShowDialog(); if (dr == DialogResult.OK) System.IO.File.WriteAllText(ef.ExportPath, m_ContactStore.ExportLog(ef.SourceLocator, ef.Band)); } }