コード例 #1
0
        private void antsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ExportLocal();
            ACSAlgorithm AcsAlgorithm = new ACSAlgorithm();

            AcsAlgorithm.StartPosition = FormStartPosition.CenterParent;
            AcsAlgorithm.ShowDialog();
        }
コード例 #2
0
ファイル: main_form.cs プロジェクト: sonjk/Logistics
        private void antsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ExportLocal();

            acs = new ACSAlgorithm();
            acs.StartPosition = FormStartPosition.CenterParent;
            acs.ShowDialog();
            gmaps Gmaps;

            if (acs.RunForDistances)
            {
                if (acs.Capacitated)
                {
                    Gmaps = new gmaps(acs.BestList, acs.Destinations, true, true);
                    Gmaps.ShowDialog();
                }
                else
                {
                    Gmaps = new gmaps(acs.Optimal, acs.Destinations, true, false);
                    Gmaps.ShowDialog();
                }
            }
        }