private void SolverType(object sender, EventArgs e) { if (sender is ToolStripMenuItem item && item.Tag is IKernel.IMeshingKernel.MeshFormats) { this.ext = (IKernel.IMeshingKernel.MeshFormats)item.Tag; ExpireSolution(true); } }
public override bool Read(GH_IReader reader) { int aIndex = -1; if (reader.TryGetInt32("MeshFormats", ref aIndex)) { ext = (IKernel.IMeshingKernel.MeshFormats)aIndex; } return(base.Read(reader)); }