public FormMaterial(Material m) { InitializeComponent(); thisekement = m; textBoxName.Text = m.name; outMatLods(); }
public void button10_Click(object sender, EventArgs e) { Material rod = new Material(); rod.pack = packs.packs[0]; if (rod.createpropertieswindow(rod.pack, tv) == System.Windows.Forms.DialogResult.OK) { rod.pack.Attach(rod); FormMainPackExplorer.Instance.UpdateData(); } if (sender == null) this.Close(); }