コード例 #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
        // -------------------------------------------------------------

        public WordCloudUIExtensionCore(IntPtr hwndParent, Translator trans)
        {
            m_HwndParent    = hwndParent;
            m_Trans         = trans;
            m_Attrib        = Task.Attribute.Title;
            m_ExcludedWords = new CommonWords(); // English by default

            m_ControlsFont = new Font(FontName, 8, FontStyle.Regular);

            m_Splitting       = false;
            m_InitialSplitPos = -1;
            m_SplitterColor   = Color.Gray;
            m_SplitterWidth   = DPIScaling.Scale(6);

            InitializeComponent();

            RhinoLicensing.LicenseType licType = RhinoLicensing.GetLicense("3BDEF4EA-7B02-41E1-BE65-3E03025E1FFE");
        }
コード例 #3
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();
            }