public MapButton(MapUI maman) { motherMap = maman; pos_x = 0; pos_y = 0; this.MouseUp += new System.Windows.Forms.MouseEventHandler(motherMap.mother.registerMatrix); }
public MapButton(int x, int y, MapUI maman) { this.Padding = new System.Windows.Forms.Padding(0, 0, 0, 0); this.Margin = new System.Windows.Forms.Padding(0, 0, 0, 0); this.Font = new System.Drawing.Font("Times New Roman", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Size = new System.Drawing.Size(30, 30); this.Text = ""; this.BackColor = Color.LightGreen; pos_x = x; pos_y = y; motherMap = maman; this.MouseUp += new System.Windows.Forms.MouseEventHandler(motherMap.mother.registerMatrix); }