public Graphique(System.Drawing.Point location, System.Drawing.Size grosseur, float[] CoordPointY, string[] nomPointX, string nomGraphique,string nomAxe) { InitializeComponent(); initVariableAffichage(); m_listeBackGroundIMG = new List<Bitmap>(); for (int i = 0; i < 13; i++) { m_listeBackGroundIMG.Add(new Bitmap(this.Size.Width, this.Size.Height)); } m_imgPath = new Bitmap(Image.FromFile("image/backgroundGraphe.png")); m_nomGraphique = nomGraphique; m_nomAxe = nomAxe; m_pointY = CoordPointY; m_pointX = nomPointX; this.Size = grosseur; this.Location = location; m_killThread = false; calculPopriete(); creerImageBackground(); callBackDessin = new dessin(invalidateControl); lockSimThread = new Object(); sw = new Stopwatch(); }
public panelTransparent(string[,] tableau, int indexMoisDebut, int opac, Form1 parent) : base() { m_formParent = parent; m_tableau = tableau; opacite = opac; m_indexMoisDebut = indexMoisDebut + 1; this.MouseEnter += new System.EventHandler(this.mouseEnter); this.MouseLeave += new System.EventHandler(this.mouseLeave); this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.mouseMove); m_moisEnCours = 0; callBackDessin = new dessin(this.invalidateControl); this.BackColor = Color.Transparent; m_commencerDessin = false; m_indexMoisEnCours = -1; //valeur initilisation }