/// <summary> /// Gets the supported profiles string. /// </summary> /// <returns></returns> internal static String GetSupportedProfilesString(this ConformanceInfo info) { var supportedProfiles = Enum.GetValues(typeof(Profile)).Cast <Profile>().Where(profile => profile.IsSupported()); //var profiles = ConformanceLog.Instance.Errors.Where(item => !item.Value.Any()).Select(item => item.Key).ToList(); //TODO //profiles.RemoveAll(item => ConformanceLog.Instance.Warnings[item].Any()); return(String.Join(", ", supportedProfiles)); }
public static String GetFeatureListFilename(this ConformanceInfo info) { if (null == info) { throw new ArgumentNullException("info"); } String productName = info.ProductName; String version = info.Version; return(FileHelper.TrimFilename(String.Format("ONVIF_FeatureList_{0}_{1}.xml", productName, version))); }
public static String GetDoCFilename(this ConformanceInfo info, bool errata = false) { if (null == info) { throw new ArgumentNullException("info"); } String docName = errata ? "DoC_Errata" : "DoC"; String productName = info.ProductName; String version = info.Version; return(FileHelper.TrimFilename(String.Format("ONVIF_{0}_{1}_{2}.pdf", docName, productName, version))); }
public ConformanceInfoView() { InitializeComponent(); mModel = ConformanceInfo.Create(); mRequiredFields = new[] { (Control)tBMemberName, tBMemberAddress, tBProductName, tBVersion, cLBProductType, tBOther, tBSupportWebsite, tBInternationalSupportAddress }; SetTablePadding(tLPInformation); SetBindings(); }
protected void ReplaceIds(XElement doc, ConformanceInfo info) { ReplaceElementValue(doc, ID_MEMBER_NAME, info.MemberName); ReplaceElementValue(doc, ID_MEMBER_ADDRESS, info.MemberAddress); ReplaceElementValue(doc, ID_SUPPORTED_PROFILES, info.GetSupportedProfilesString()); ReplaceElementValue(doc, ID_CTT_VERSION, Properties.Settings.Default.Version); ReplaceElementValue(doc, ID_PRODUCT_NAME, info.ProductName); ReplaceElementValue(doc, ID_CLIENT_FEATURES, info.GetSupportedFeaturesString()); ReplaceElementValue(doc, ID_BRAND, info.Brand); ReplaceElementValue(doc, ID_MODEL, info.Model); ReplaceElementValue(doc, ID_VERSION, info.Version); ReplaceElementValue(doc, ID_PRODUCT_TYPE, info.ProductType); ReplaceElementValue(doc, ID_OTHER_INFO, info.OtherInformation); ReplaceElementValue(doc, ID_GENERAL_INFO, info.InternationalSupportAddress); ReplaceElementValue(doc, ID_TEST_OPERATOR, info.TestOperatorName); ReplaceElementValue(doc, ID_EXECUTING_ORG_NAME, info.OrganizationName); ReplaceElementValue(doc, ID_EXECUTING_ORG_ADDRESS, info.MemberAddress); ReplaceElementValue(doc, ID_TECH_SUPPORT_WEBSITE, info.TechSupportWebsite); ReplaceElementValue(doc, ID_TECH_SUPPORT_EMAIL, info.TechSupportEmail); ReplaceElementValue(doc, ID_TECH_SUPPORT_PHONE, info.TechSupportPhone); ReplaceElementValue(doc, ID_INTERNATIONAL_SUPPORT_ADDRESS, info.InternationalSupportAddress); ReplaceElementValue(doc, ID_REGIONAL_SUPPORT_ADDRESS, info.RegionalSupportAddress); }
public DoCWithErrataGenerator(List <Tuple <String, String, String> > erratumTable, ConformanceInfo info, String templatePath) : base(info, templatePath) { mErratumTable = erratumTable; }
public FeatureListGenerator(ConformanceInfo info) { mConformanceInfo = info; }
protected BaseDoCGenerator(ConformanceInfo info, String templatePath) : base(templatePath) { Info = info; }
public DoCGenerator(ConformanceInfo info, String templatePath) : base(info, templatePath) { }
public ErrataForm(ConformanceInfo info) { InitializeComponent(); mConformanceInfo = info; }
/// <summary> /// Gets the supported features string. /// </summary> /// <returns></returns> internal static String GetSupportedFeaturesString(this ConformanceInfo info) { var features = FeatureSet.Instance.Where(item => FeatureStatus.Supported == item.Info.Status).Select(item => item.Feature); return(String.Join(", ", features)); }