private void CMDload_Click(object sender, EventArgs e) { string FilePath; CleanSales(); OFDImport.ShowDialog(); FilePath = OFDImport.FileName; LoadCSV(FilePath); }
private void TSMIImport_Click(object sender, EventArgs e) { if (OFDImport.ShowDialog() == DialogResult.OK) { if (Settings.Default.PropertyValues.Import(OFDImport.FileName, "RotatingScanner")) { LoadSettings(); MessageBox.Show(LocalizedResources.ImportSuccesful, LocalizedResources.SettingsTitle, MessageBoxButtons.OK, MessageBoxIcon.Information); } else { LoadSettings(); MessageBox.Show(LocalizedResources.ImportUnsuccesful, LocalizedResources.SettingsTitle, MessageBoxButtons.OK, MessageBoxIcon.Error); } if (SettingsLoaded != null) { SettingsLoaded(this, null); } } }