// --------------------------------------------- public Banner(String typeId, Translator trans, int dollarPrice) { m_TypeId = typeId; m_Trans = trans; m_DollarPrice = dollarPrice; m_LicenseType = RhinoLicensing.GetLicense(typeId); InitializeComponent(); }
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(); }