示例#1
0
        private void CMDload_Click(object sender, EventArgs e)
        {
            string FilePath;

            CleanSales();
            OFDImport.ShowDialog();
            FilePath = OFDImport.FileName;
            LoadCSV(FilePath);
        }
示例#2
0
 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);
         }
     }
 }