private string MusgraveToString(MusgraveTypes dist) { var str = dist.ToString(); str = str.Replace("_", " "); return(str); }
public override bool Read(GH_IReader reader) { if (reader.ItemExists("Musgrave")) { var dist = reader.GetString("Musgrave"); Musgrave = Utils.MusgraveFromString(dist); } return(base.Read(reader)); }
public void appendMenu(MusgraveTypes it, ToolStripDropDown menu) { var u = this; Menu_AppendItem( menu, Utils.MusgraveToStringR(it), ((_, __) => { u.Musgrave = it; u.ExpireSolution(true); }), true, u.Musgrave == it); }
private string MusgraveToString(MusgraveTypes dist) { var str = dist.ToString(); str = str.Replace("_", " "); return str; }
public static string MusgraveToStringR(MusgraveTypes u) => u.ToString().Replace("FB", "fB").Replace("_", " ");
public void SetType(string dist) { dist = dist.Replace(" ", "_"); MusgraveType = (MusgraveTypes)System.Enum.Parse(typeof(MusgraveTypes), dist, true); }