private void btnMaterial_Click(object sender, EventArgs e) { MaterialEditorForm materialEditor = new MaterialEditorForm(); materialEditor.menuStripVisible(false); if (materialEditor.ShowDialog() == DialogResult.OK) { // Ajouter le nom du Material material = mTemp; //Changer le bouton Choose correspondant txtMaterial.Text = material.Name; txtMaterial.Visible = true; btnMaterial.Text = "..."; btnMaterial.Size = btnSize; btnMaterial.Location = new Point(186, 158); } }
private void materialEditorToolStripMenuItem_Click(object sender, EventArgs e) { MaterialEditorForm mForm = new MaterialEditorForm(); mForm.hideSelect(); mForm.Show(); }