コード例 #1
0
            // ---------------------------------------------

            public Banner(String typeId, Translator trans, int dollarPrice)
            {
                m_TypeId      = typeId;
                m_Trans       = trans;
                m_DollarPrice = dollarPrice;
                m_LicenseType = RhinoLicensing.GetLicense(typeId);

                InitializeComponent();
            }
コード例 #2
0
            private Color m_ThemedBorderColor;             // we draw it

            // ---------------------------------------------

            public Banner(String typeId, String uiName, Translator trans, int dollarPrice)
            {
                m_TypeId      = typeId;
                m_UiName      = trans.Translate(uiName);
                m_Trans       = trans;
                m_DollarPrice = dollarPrice;
                m_Theme       = new UITheme();

                if (m_DollarPrice < 0)
                {
                    m_LicenseType = LicenseType.Free;
                }
                else
                {
                    m_LicenseType = RhinoLicensing.GetLicense(typeId);
                }

                InitializeComponent();
            }
コード例 #3
0
 private String FormatPaypalUrl()
 {
     return(String.Format(PAYPAL_URL, m_TypeId, RhinoLicensing.EncodeUserID(), m_DollarPrice));
 }