public CyCustErr IsValid(ICyDWComponentValidArgs_v1 args) { IList <string> LinComps; if (args.CompNames.TryGetValue("LIN", out LinComps)) { // check if multiple instance support component is present on the schematic for (int i = 0; i < LinComps.Count; i++) { if (args.GetVersion(LinComps[i]) >= firstMultiInstVersion) { return(CyCustErr.Ok); } } } return(new CyCustErr(resource.DWC_SUPPORT_ERROR)); }
public CyCustErr IsValid(ICyDWComponentValidArgs_v1 args) { return(CyCustErr.OK); }