Esempio n. 1
0
 // This function does the actual file loading
 // It is called by the fileForm
 public void loadFromMultipleFiles(MultipleFileForm fileForm)
 {
     SetMode(true, false);
     useMultipleFiles = true;
     fileNames = fileForm.FileList;
     try
     {
         currentYear = net.LoadFromMultipleFiles(fileNames, -1);
     }
     catch (Exception e)
     {
         MessageBox.Show("There was an error loading from multiple files: " + e.Message, "Error!");
     }
     loadFrom = "Matrix";
     SetFormTitle();
     if (displayMatrix == "Affil")
         displayMatrix = "Data";
     LoadData();
 }
Esempio n. 2
0
 private void multipleFilesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     openFileDialog.Multiselect = true;
     
     MultipleFileForm fileForm = new MultipleFileForm(this);
     fileForm.Show();
 }