예제 #1
0
        public CyCustErr GetBodyText(ICySystemBuilderCompArgs_v1 args, out string bodyText)
        {
            string appVersion = "";
            System.UInt16 iappVersion;

            CyCompDevParam applicationVersion = args.InstQuery.GetCommittedParam(CyParameters.PARAM_VERSION);

            if (applicationVersion.ErrorCount == 0)
            {
                applicationVersion.TryGetValueAs<System.UInt16>(out iappVersion);
                appVersion = ConvertDecToHex(iappVersion);
            }

            bodyText = String.Format(Resources.SBComponentBodyText, appVersion);

            return CyCustErr.OK;
        }
        public CyCustErr GetBodyText(ICySystemBuilderCompArgs_v1 args, out string bodyText)
        {
            string appVersion = "";

            System.UInt16 iappVersion;

            CyCompDevParam applicationVersion = args.InstQuery.GetCommittedParam(CyParameters.PARAM_VERSION);

            if (applicationVersion.ErrorCount == 0)
            {
                applicationVersion.TryGetValueAs <System.UInt16>(out iappVersion);
                appVersion = ConvertDecToHex(iappVersion);
            }

            bodyText = String.Format(Resources.SBComponentBodyText, appVersion);

            return(CyCustErr.OK);
        }
 public CyCustErr GetTitleText(ICySystemBuilderCompArgs_v1 args, out string title)
 {
     title = Properties.Resources.SBComponentTitle;
     return(CyCustErr.OK);
 }
예제 #4
0
 public CyCustErr GetTitleText(ICySystemBuilderCompArgs_v1 args, out string title)
 {
     title = Properties.Resources.SBComponentTitle;
     return CyCustErr.OK;
 }