Example #1
0
        KeyGen()
        {
            licenseComponent = new licX.LicXLicenseComponent();
            licenseComponent.ContactUrl             = "http://www.wanderlust-software.com";
            licenseComponent.MasterLicensePassword  = "******";
            licenseComponent.ProductName            = "License Express(tm) for .NET";
            licenseComponent.VendorName             = "Wanderlust Software, LLC";
            licenseComponent.NagDuringEvaluation    = false;

            // Validate the licX license.
#if !INTERNAL
            try
            {
                license = (licX.LicXLicense) LicenseManager.Validate(this.GetType(), this);            
            }
            catch( /* LicenseException e */Exception )
            {
                // swallow the LicenseException if non valid key is used for KeyGen.
                
                //Console.WriteLine("Exception building license.");
                //Console.WriteLine(e);
                Application.Exit();
            }
#endif
        }
Example #2
0
        KeyGen()
        {
            licenseComponent                       = new licX.LicXLicenseComponent();
            licenseComponent.ContactUrl            = "http://www.wanderlust-software.com";
            licenseComponent.MasterLicensePassword = "******";
            licenseComponent.ProductName           = "License Express(tm) for .NET";
            licenseComponent.VendorName            = "Wanderlust Software, LLC";
            licenseComponent.NagDuringEvaluation   = false;

            // Validate the licX license.
#if !INTERNAL
            try
            {
                license = (licX.LicXLicense)LicenseManager.Validate(this.GetType(), this);
            }
            catch (/* LicenseException e */ Exception)
            {
                // swallow the LicenseException if non valid key is used for KeyGen.

                //Console.WriteLine("Exception building license.");
                //Console.WriteLine(e);
                Application.Exit();
            }
#endif
        }
Example #3
0
		public TestLicensedComponent()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();

            licXLicense = (licX.LicXLicense) LicenseManager.Validate(typeof(TestLicensedComponent), this);
            Trace.WriteLine( "License Information: " );
            Trace.WriteLine( "  LicenseKey: " + licXLicense.LicenseKey);
            Trace.WriteLine( "  SerialNumber: " + licXLicense.SerialNumber);
            Trace.WriteLine( "  IsEvaluation: " + licXLicense.IsEvaluation );
            Trace.WriteLine( "  EvaluationDaysRemaining: " + licXLicense.EvaluationDaysRemaining );

            if ( licXLicense.IsEvaluation )
            {
                evaluationLabel.Visible = true;
            }
		}
Example #4
0
        public TestLicensedComponent()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            licXLicense = (licX.LicXLicense)LicenseManager.Validate(typeof(TestLicensedComponent), this);
            Trace.WriteLine("License Information: ");
            Trace.WriteLine("  LicenseKey: " + licXLicense.LicenseKey);
            Trace.WriteLine("  SerialNumber: " + licXLicense.SerialNumber);
            Trace.WriteLine("  IsEvaluation: " + licXLicense.IsEvaluation);
            Trace.WriteLine("  EvaluationDaysRemaining: " + licXLicense.EvaluationDaysRemaining);

            if (licXLicense.IsEvaluation)
            {
                evaluationLabel.Visible = true;
            }
        }
Example #5
0
		public KeyGenWin()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

            licenseComponent = new licX.LicXLicenseComponent();
            licenseComponent.ContactUrl             = "http://www.wanderlust-software.com";
            licenseComponent.MasterLicensePassword  = "******";
            licenseComponent.ProductName            = "License Express(tm) for .NET";
            licenseComponent.VendorName             = "Wanderlust Software, LLC";
            licenseComponent.NagDuringEvaluation    = false;

            // Validate the licX license.
           
            license = (licX.LicXLicense) LicenseManager.Validate(this.GetType(), this);            
            

//#if TempTakeoutToDebug
            if ( license.IsEvaluation )
            {   
                MessageBox.Show( 
                    "Because you have an evaluation version of License Express (tm), this utility " +
                    "will only generate evaluation license keys with a maximum " +
                    "expiration time of 2 days.  Visit http://www.wanderlust-software.com " +
                    "to purchase a retail license which provides full functionality.",
                    "Evaluation License Notice"
                    );

                evaluationButton.Checked = true;
                evaluationDays.Enabled = true;
                evaluationDays.Value = 2;
                evaluationDays.Maximum = 2;

                retailButton.Checked = false;
                retailButton.Enabled = false;                
                dateTimePicker.Enabled = false;
                expiresCheckBox.Enabled = false;
            }
// #endif

        }
Example #6
0
        public KeyGenWin()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            licenseComponent                       = new licX.LicXLicenseComponent();
            licenseComponent.ContactUrl            = "http://www.wanderlust-software.com";
            licenseComponent.MasterLicensePassword = "******";
            licenseComponent.ProductName           = "License Express(tm) for .NET";
            licenseComponent.VendorName            = "Wanderlust Software, LLC";
            licenseComponent.NagDuringEvaluation   = false;

            // Validate the licX license.

            license = (licX.LicXLicense)LicenseManager.Validate(this.GetType(), this);


//#if TempTakeoutToDebug
            if (license.IsEvaluation)
            {
                MessageBox.Show(
                    "Because you have an evaluation version of License Express (tm), this utility " +
                    "will only generate evaluation license keys with a maximum " +
                    "expiration time of 2 days.  Visit http://www.wanderlust-software.com " +
                    "to purchase a retail license which provides full functionality.",
                    "Evaluation License Notice"
                    );

                evaluationButton.Checked = true;
                evaluationDays.Enabled   = true;
                evaluationDays.Value     = 2;
                evaluationDays.Maximum   = 2;

                retailButton.Checked    = false;
                retailButton.Enabled    = false;
                dateTimePicker.Enabled  = false;
                expiresCheckBox.Enabled = false;
            }
// #endif
        }