private void btnRun_Click(object sender, EventArgs e) { itfAmpl ampl = new itfAmpl(); switch (iModelSelected) { case 1: ampl.Run(iModelSelected, "D:/CMetis/Metis/models/DTUC_noNetwork.mod", DataFilePath); break; case 2: ampl.Run(iModelSelected, "D:/CMetis/Metis/models/CTUC.mod", DataFilePath); break; case 3: ampl.Run(iModelSelected, "D:/CMetis/Metis/models/CTUC_w_ES.mod", DataFilePath); break; case 4: ampl.Run(iModelSelected, "D:/CMetis/Metis/models/CTUC_w_ES_NoCSU.mod", DataFilePath); break; default: break; } }
private void button1_Click(object sender, EventArgs e) { itfAmpl amplData = new itfAmpl(); incomingForm.DataFilePath = path; DataTable dtGen = amplData.GetInputGenData(path); incomingForm.SetGenTableDataSource(dtGen); DataTable dtES = amplData.GetInputESData(path); incomingForm.SetESTableDataSource(dtES); incomingForm.Show(); this.Close(); }