示例#1
0
        /// <summary>
        /// Get license from registry. If not expired and is valid then use it
        /// </summary>
        /// <param name="context"></param>
        /// <param name="type"></param>
        /// <param name="instance"></param>
        /// <param name="allowExceptions"></param>
        /// <returns></returns>
        public override License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions)
        {
            // Get license only in design mode
            if (context.UsageMode == LicenseUsageMode.Designtime)
            {
                // check and create license
                AxiomLicense lic = new AxiomLicense();

                // Trial license
                System.Windows.Forms.MessageBox.Show("Please register ME!");
                return lic;
            }
            else
            {
                return new AxiomLicense();
            }
        }
示例#2
0
        /// <summary>
        /// Get license from registry. If not expired and is valid then use it
        /// </summary>
        /// <param name="context"></param>
        /// <param name="type"></param>
        /// <param name="instance"></param>
        /// <param name="allowExceptions"></param>
        /// <returns></returns>
        public override License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions)
        {
            // Get license only in design mode
            if (context.UsageMode == LicenseUsageMode.Designtime)
            {
                // check and create license
                AxiomLicense lic = new AxiomLicense();

                // Trial license
                System.Windows.Forms.MessageBox.Show("Please register ME!");
                return(lic);
            }
            else
            {
                return(new AxiomLicense());
            }
        }