/// <summary> /// /// </summary> /// <param name="filter"></param> /// <param name="paramList"></param> protected internal virtual void SetParams(IAddin filter, ParamList paramList) { if (filter is IAddin) { for (int i = 0; i < paramList.Count; i++) { var pi = paramList.ElementAt(i); if (pi.Value.Value is long) { pi.Value.Value = Convert.ToInt32(pi.Value.Value); } filter.Params[pi.Key] = pi.Value; } } }