Exemplo n.º 1
0
 public FormEstadisticas(FormCargar principal)
 {
     this.principal = principal;
     InitializeComponent();
     crearGrafico();
     crearTablas();
 }
Exemplo n.º 2
0
 public FormMapa(FormCargar principal, String codigo, String tipoSolucion)
 {
     InitializeComponent();
     this.principal    = principal;
     this.tipoSolucion = tipoSolucion;
     mapa.DragButton   = MouseButtons.Left;
     mapa.CanDragMap   = true;
     mapa.MapProvider  = GMapProviders.GoogleMap;
     mapa.AutoScroll   = true;
     mapa.MinZoom      = 0;
     mapa.MaxZoom      = 24;
     mapa.Zoom         = 1;
     try
     {
         IPHostEntry e = Dns.GetHostEntry("www.google.com");
     }
     catch
     {
         mapa.Manager.Mode = AccessMode.CacheOnly;
         MessageBox.Show("No se puede cargar el mapa porque no hay conexión a internet",
                         "Aviso", MessageBoxButtons.OK,
                         MessageBoxIcon.Warning);
     }
     marcadoresViajeros = new GMapOverlay();
     rutas = new GMapOverlay();
     mapa.Overlays.Add(marcadoresViajeros);
     mapa.Overlays.Add(rutas);
     cargarInformacion(codigo, tipoSolucion);
     cbMostrarCiudades.Checked = true;
     cbMostrarRutas.Checked    = true;
 }
Exemplo n.º 3
0
 public FormSolucionViajero(FormCargar principal, String codigo)
 {
     this.principal = principal;
     InitializeComponent();
     cargarInformacion(codigo);
     gifCargando.Image   = Image.FromFile("Img/cargando4.gif");
     gifCargando.Visible = false;
 }
Exemplo n.º 4
0
        public FormFiltro(FormCargar principal)
        {
            InitializeComponent();
            this.principal     = principal;
            marcadoresCiudades = new GMapOverlay();
            rutas = new GMapOverlay();
            mapa.Overlays.Add(marcadoresCiudades);
            mapa.Overlays.Add(rutas);
            inicializarMapa();
            gifCargando.Image = Image.FromFile("Img/cargando4.gif");
            ciudades          = new List <Ciudad>();

            rbKruskal.Enabled     = false;
            rbFuerzaBruta.Enabled = false;
            rbInsercion.Enabled   = false;
        }