示例#1
0
        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;
            }
        }
示例#2
0
        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();
        }