Esempio n. 1
0
        public Screenshot(gmaps main) //overloaded constructor
        {
            InitializeComponent();

            gmap = main;

            bg.WorkerReportsProgress      = true;
            bg.WorkerSupportsCancellation = true;
            bg.DoWork             += new DoWorkEventHandler(bg_DoWork);
            bg.ProgressChanged    += new ProgressChangedEventHandler(bg_ProgressChanged);
            bg.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bg_RunWorkerCompleted);
        }
Esempio n. 2
0
        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();
                }
            }
        }
Esempio n. 3
0
        private void implementGoogleMapsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            gmaps maps = new gmaps();

            maps.ShowDialog();
        }