public void DesenharCidades(PictureBox pb, int imgWidth, int imgHeight) { arvoreCidades.DesenharCidades(pb, imgWidth, imgHeight); }
// Evento click do tbControl que desenha a árvore de cidades private void tbControl_Click(object sender, EventArgs e) { Graphics g = pbArvore.CreateGraphics(); arvoreCidades.DesenharCidades(pbArvore.Width / 2, 5, g, 3 * Math.PI / 2, 1.1, 260); }