예제 #1
0
        /// <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));
        }
예제 #2
0
        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)));
        }
예제 #3
0
        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)));
        }
예제 #4
0
        public ConformanceInfoView()
        {
            InitializeComponent();

            mModel = ConformanceInfo.Create();

            mRequiredFields = new[]
            {
                (Control)tBMemberName,
                tBMemberAddress,
                tBProductName,
                tBVersion,
                cLBProductType,
                tBOther,
                tBSupportWebsite,
                tBInternationalSupportAddress
            };

            SetTablePadding(tLPInformation);
            SetBindings();
        }
예제 #5
0
 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;
 }
예제 #7
0
 public FeatureListGenerator(ConformanceInfo info)
 {
     mConformanceInfo = info;
 }
예제 #8
0
 protected BaseDoCGenerator(ConformanceInfo info, String templatePath) : base(templatePath)
 {
     Info = info;
 }
예제 #9
0
 public DoCGenerator(ConformanceInfo info, String templatePath) : base(info, templatePath)
 {
 }
예제 #10
0
 public ErrataForm(ConformanceInfo info)
 {
     InitializeComponent();
     mConformanceInfo = info;
 }
예제 #11
0
        /// <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));
        }