private void showMesures() { boxMesures bxMes = new boxMesures(this.ModeleMesure, false) { Location = new Point(12, 13), Visible = true, Name = "Menu" }; panelMenu.Controls.Add(bxMes); }
private void lblValue_Click(object sender, EventArgs e) { Label myFriend = (Label)sender; var parent = this.Parent; this.Hide(); this.Model.Mes = this.Model.GetMesureById((int)myFriend.Tag); boxMesures bxM = new boxMesures(this.Model, true) { Location = new Point(20, 7), Visible = true, Name = "Menu" }; parent.Controls.Add(bxM); }