示例#1
0
        private string MusgraveToString(MusgraveTypes dist)
        {
            var str = dist.ToString();

            str = str.Replace("_", " ");
            return(str);
        }
示例#2
0
 public override bool Read(GH_IReader reader)
 {
     if (reader.ItemExists("Musgrave"))
     {
         var dist = reader.GetString("Musgrave");
         Musgrave = Utils.MusgraveFromString(dist);
     }
     return(base.Read(reader));
 }
示例#3
0
        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);
        }
示例#4
0
 private string MusgraveToString(MusgraveTypes dist)
 {
     var str = dist.ToString();
     str = str.Replace("_", " ");
     return str;
 }
示例#5
0
 public static string MusgraveToStringR(MusgraveTypes u) => u.ToString().Replace("FB", "fB").Replace("_", " ");
示例#6
0
 public void SetType(string dist)
 {
     dist         = dist.Replace(" ", "_");
     MusgraveType = (MusgraveTypes)System.Enum.Parse(typeof(MusgraveTypes), dist, true);
 }