Exemplo n.º 1
0
 private void LoadDatabaseButton_Click(object sender, EventArgs e)
 {
     if (LoadDatabaseFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.Cancel)
     {
         return;
     }
     DatabaseLocation.Text = LoadDatabaseFileDialog.FileName;
     //except actually load it here
     //load database
     globalDependencies  = new List <Dependency>();
     dependencies        = new List <Dependency>();
     logicalDependencies = new List <LogicalDependency>();
     parsedCatagoryList  = new List <Category>();
     XMLUtils.CreateModStructure(LoadDatabaseFileDialog.FileName, globalDependencies, dependencies, logicalDependencies, parsedCatagoryList);
     if (!SpreadsheetLocation.Text.Equals(""))
     {
         SpreadsheetLocation.Text = "(old) " + SpreadsheetLocation.Text;
     }
 }