public KnownSubmodelViewItem(KnownSubmodelsOptionsRecord rec, string basePath = "")
 {
     if (rec != null)
     {
         DisplayHeader     = rec.Header;
         DisplayContent    = rec.Content;
         DisplayFurtherUrl = rec.FurtherUrl;
         ImagePath         = Path.Combine(basePath, rec.ImageLink);
     }
 }
示例#2
0
        /// <summary>
        /// Create a set of minimal options
        /// </summary>
        public static KnownSubmodelsOptions CreateDefault()
        {
            var rec = new KnownSubmodelsOptionsRecord()
            {
                Header  = "ZVEI Contact Information (Version 1.0)",
                Content = "This submodel template aims at interoperable provision of contact information in regard " +
                          "to the asset of the respective Asset Administration Shell. " +
                          "The intended use-case is the provision of a standardized property structure for contact " +
                          "information, which can effectively accelerate the preperation for asset maintenance.",
                ImageLink  = "AasxPluginKnownSubmodels.media\\SMT_ZveiContactInformation10.png",
                FurtherUrl = "https://github.com/admin-shell-io/id"
            };

            rec.AllowSubmodelSemanticId.Add(
                AasxPredefinedConcepts.ZveiContactInformationV10.Static.SM_ContactInformation.GetSemanticKey());

            var opt = new KnownSubmodelsOptions();

            opt.Records.Add(rec);

            return(opt);
        }