Ejemplo n.º 1
0
 public neigeContainer(int nbFloconPerThread, ref Graphique parent)
 {
     m_nbPixelCollision = 30;
     m_controlParent = parent;
     delInvalidate = invalidateControl;
     hideDel = hideControl;
     lockIMG = new object();
     nbFlocon = nbFloconPerThread;
     m_simThread = new Thread(simulationSequence);
     m_done = false;
     rng = new Random();
     this.Size = parent.Size;
     solIMG = new Bitmap(this.Size.Width, this.Size.Height);
     initSol();
     creerFlocons(nbFloconPerThread);
 }
Ejemplo n.º 2
0
 private void genererGraphique(Point location, Size size, string nomGraphique,string nomAxe)
 {
     float[] coordY = new float[12];
     string[] nomX = new string[12];
     lireAirTemperature(ref coordY, ref nomX);
     this.m_graphique = new Graphique(location, size, coordY, nomX, nomGraphique,nomAxe);
     this.panelGraphique.Controls.Add(this.m_graphique);
 }