Esempio n. 1
0
        public AddActivation(LMan4.com.licensemanager4web.License l, LMan4.com.licensemanager4web.LicenseFeaturesParams lf)
        {
            InitializeComponent();
            this.license         = l;
            this.licenseFeatures = lf;

            this.Text = "Add Activation Record";

            this.populateLicense();
        }
Esempio n. 2
0
 private void btnAddActivationRecord_Click(object sender, EventArgs e)
 {
     if (this.currentLicenseId != -1)
     {
         LMan4.com.licensemanager4web.License l = licenseService.GetLicenseById(this.currentLicenseId);
         LMan4.com.licensemanager4web.LicenseFeaturesParams lf = licenseService.GetLicenseFeatureParams(this.currentLicenseId);
         AddActivation frm = new AddActivation(l, lf);
         frm.FormClosed += new FormClosedEventHandler(frm_FormClosed);
         frm.Show();
     }
     else
     {
         MessageBox.Show("Please select and existing license record, or save current record before creating an activation record.");
     }
 }
Esempio n. 3
0
        void ulvActivations_ItemDoubleClick(object sender, ItemDoubleClickEventArgs e)
        {
            if (ulvActivations.SelectedItems.Count > 0)
            {
                if (this.currentLicenseId != -1)
                {
                    LMan4.com.licensemanager4web.License l = licenseService.GetLicenseById(this.currentLicenseId);
                    LMan4.com.licensemanager4web.LicenseFeaturesParams lf = licenseService.GetLicenseFeatureParams(this.currentLicenseId);
                    LMan4.com.licensemanager4web.Activation            a  = licenseService.GetActivationById(Convert.ToInt32(ulvActivations.SelectedItems[0].Key));

                    AddActivation frm = new AddActivation(l, lf, a);
                    frm.FormClosed += new FormClosedEventHandler(frm_FormClosed);
                    frm.Show();
                }
                else
                {
                    MessageBox.Show("Please select and existing license record, or save current record before creating an activation record.", "Error");
                }
            }
        }