Ejemplo 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);
        }
Ejemplo 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();
                }
            }
        }
Ejemplo n.º 3
0
        private void implementGoogleMapsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            gmaps maps = new gmaps();

            maps.ShowDialog();
        }