Exemplo n.º 1
0
        private void btnGO_Click(object sender, EventArgs e)
        {
            int w, h, i, p, s;

            Int32.TryParse(nudAncho.Value.ToString(), out w);
            Int32.TryParse(nudAlto.Value.ToString(), out h);
            Int32.TryParse(nudAgua.Value.ToString(), out p);
            Int32.TryParse(nudIteraciones.Value.ToString(), out i);
            Int32.TryParse(tbSemilla.Text, out s);

            map = new MapGC(w, h, i, s, p);
            map.Hacermapa();
            pbMapa.Image = map.printBMP();
        }
Exemplo n.º 2
0
 public MapGCTimedEvent(string id, MapGC mapGC)
 {
     this.id    = id;
     this.mapGC = mapGC;
 }