//Constructor public FormMapa(FormSolucionarTodo principalTodo, String codigo, String tipoSolucion) { InitializeComponent(); this.principalTodo = principalTodo; principal = principalTodo.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 = 2; 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; }
public WorkKruskalTodo(FormSolucionarTodo principal) { this.principal = principal; }
public WorkFuerzaBrutaTodos(FormSolucionarTodo principal) { this.principal = principal; }
public workInsercionTodo(FormSolucionarTodo principal) { this.principal = principal; }
private void butSolucionarTodo_Click_1(object sender, EventArgs e) { formSolucionarTodo = new FormSolucionarTodo(this); formSolucionarTodo.Visible = true; this.Enabled = false; }