public override bool Read(GH_IReader reader) { this.modes = (g3.MarchingCubes.RootfindingModes)reader.GetInt32("Modes"); this.steps = reader.GetInt32("steps"); return(base.Read(reader)); }
private void Menu_PanelTypeChanged(object sender, EventArgs e) { if (sender is ToolStripMenuItem item && item.Tag is "RootMode") { modes = (g3.MarchingCubes.RootfindingModes)Enum.Parse(typeof(g3.MarchingCubes.RootfindingModes), item.Text, true); } this.ExpireSolution(true); }