/*************************************/ private static string ToText(ParamMoved update) { if (update != null) { return("Param " + update.Name + " moved to " + update.Index); } else { return("Undefined param moved"); } }
/*******************************************/ protected virtual void UpdateOutput(ParamMoved update) { int index = Params.Output.FindIndex(x => x.Name == update.Name); if (index >= 0) { IGH_Param param = Params.Output[index]; Params.Output.RemoveAt(index); Params.Output.Insert(update.Index, param); } }