コード例 #1
0
        void ObjetivoToolStripMenuItemClick(object sender, EventArgs e)
        {
            int node_select = this.treeView1.SelectedNode.Index;

            this.objetivo = grafo.getVertices()[node_select];
            this.dibujarEspectro(objetivo.getCentro(), false);
            pictureBox1.Refresh();
        }
コード例 #2
0
        void animar()
        {
            Graphics gr = Graphics.FromImage(bm);

            while (actualizarAgentes())
            {
                dibujarEspectro(objetivo.getCentro(), false);
                pictureBox1.Refresh();
                gr.Clear(Color.Transparent);
            }
            for (int i = 0; i < aList.Count; i++)
            {
                dibujarEspectro(aList[i].getListaCamino(), true);
            }
            pictureBox1.Refresh();
        }