Ejemplo n.º 1
0
 private void button4_Click(object sender, System.EventArgs e)
 {
     Opciones o=new Opciones("Cubo",((RSADibujable)scene.element).ColorCubo);
     o.ShowDialog();
     float[] arrayColor=o.Color;
     o.Close();
     ((RSADibujable)scene.element).ColorCubo=arrayColor;
     this.Refresh();
     scene.element.Recompile();
     this.Refresh();
     //scene.element.Recompile();
     //this.Refresh();
 }
Ejemplo n.º 2
0
 private void button3_Click(object sender, System.EventArgs e)
 {
     float[] arrayColor=null;
     if(((RSADibujable)scene.element).ColorDeParticulasAleatorio)
     {
         arrayColor=new float[] { 0.7f, 0.3f, 0.0f, 0.65f };
     }
     else
     {
         arrayColor=((RSADibujable)scene.element).ColorParticula;
     }
     Opciones o=new Opciones(((RSADibujable)scene.element).Rsa.InfoParticula.Nombre,arrayColor);
     o.ShowDialog();
     arrayColor=o.Color;
     o.Close();
     ((RSADibujable)scene.element).ColorParticula=arrayColor;
     this.Refresh();
     scene.element.Recompile();
     this.Refresh();
     //scene.element.Recompile();
     //this.Refresh();
 }