/*******************************************/ protected virtual void UpdateOutput(ParamRemoved update) { IGH_Param match = Params.Output.Find(x => x.Name == update.Name); if (match != null) { Params.UnregisterOutputParameter(match); } }
/*******************************************/ protected virtual void UpdateInput(ParamRemoved update) { IGH_Param match = Params.Input.Find(x => x.Name.ToLower() == update.Name.ToLower()); if (match != null) { Params.UnregisterInputParameter(match); } }
/*************************************/ private static string ToText(ParamRemoved update) { if (update != null) { return("Parameter " + update.Name + " removed"); } else { return("Undefined param removed"); } }