public void ShowEditor() { Forms.MaterialEditorForm materialEditor = new Forms.MaterialEditorForm(); Grasshopper.GUI.GH_WindowsFormUtil.CenterFormOnCursor(materialEditor, true); if (this.material != null) { materialEditor.materialEditor1.material = this.material; } materialEditor.materialEditor1.Materials = this.LoadedMaterials; materialEditor.ShowDialog(); materialEditor.materialEditor1.material.LoadData(this.Url); this.SetValue("material", Serialization.Utilities.Serialize(materialEditor.materialEditor1.material)); this.ExpireSolution(true); }
public void ShowEditor() { Forms.MaterialEditorForm materialEditor = new Forms.MaterialEditorForm(); Grasshopper.GUI.GH_WindowsFormUtil.CenterFormOnCursor(materialEditor, true); materialEditor.materialEditor1.alternativeDataSourcePath = this.alternativeDataSourcePath; materialEditor.materialEditor1.isPercentual = this.isPercentual; if (this.assembly != null) materialEditor.materialEditor1.assembly = this.assembly; materialEditor.ShowDialog(); // this.assembly = materialEditor.materialEditor1.assembly; this.SetValue("assembly", Serialization.Utilities.Serialize(materialEditor.materialEditor1.assembly)); this.ExpireSolution(true); }