Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 private void materialEditorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MaterialEditorForm mForm = new MaterialEditorForm();
     mForm.hideSelect();
     mForm.Show();
 }