private void toolStripMenuItemEditPolynormalName_Click(object sender, System.EventArgs e) { NJS_MESHSET selectedMesh = ((BasicAttach)editedModel).Mesh[listViewMeshes.SelectedIndices[0]]; using (LabelEditor le = new LabelEditor(selectedMesh.PolyNormalName)) { if (le.ShowDialog(this) == DialogResult.OK) { selectedMesh.PolyNormalName = le.Result; } } FixLabels(); BuildMeshsetList(); }
private void toolStripMenuItemEditMaterialID_Click(object sender, EventArgs e) { NJS_MESHSET selectedMesh = ((BasicAttach)editedModel).Mesh[listViewMeshes.SelectedIndices[0]]; using (LabelEditor le = new LabelEditor(selectedMesh.MaterialID.ToString(), "", true)) { if (le.ShowDialog(this) == DialogResult.OK) { int.TryParse(le.Result, out int result); selectedMesh.MaterialID = (ushort)result; } } FixLabels(); BuildMeshsetList(); }