コード例 #1
0
        public void RequestTrial(InstallationForm form)
        {
            ILicence l = InstallationManager.Instance.Licence;

            form.TypeOfRequestedLicence = LicenceTypes.Trial;
            form.cmdCancel.Enabled      = true;
            form.cmdInstall.Enabled     = false;
            form.cmdTrial.Enabled       = false;
            form.cmdAll.Enabled         = true;

            form.txtCode.Enabled = false;
            //form.txtCode.Text = l.ActivationCode;

            form.txtLicenceType.Enabled = false;
            form.txtLicenceType.Text    = l.TypeToString();
            form.lblScadenza.Text       = "ATTENZIONE! La licenza di prova scadrà tra " + l.TrialDays.ToString() + " giorni.";
            form.lblScadenza.Visible    = true;
            form.txtTrial.Enabled       = false;
            form.txtTrial.Text          = l.TrialDays.ToString();

            form.txtRagSoc.Enabled = true;
            form.txtRagSoc.Text    = InstallationManager.Instance.Buyer.CustomerName;

            form.txtMail.Enabled = true;
            form.txtMail.Text    = InstallationManager.Instance.Buyer.Mail;

            form.txtLicenceType.Text = "PROVA";
        }
コード例 #2
0
        public void InitializeInterface(InstallationForm form)
        {
            ILicence l = InstallationManager.Instance.Licence;

            form.cmdCancel.Enabled  = true;
            form.cmdInstall.Enabled = false;
            form.cmdTrial.Enabled   = false;
            form.cmdAll.Enabled     = true;

            form.txtCode.Enabled = false;
            //form.txtCode.Text = l.ActivationCode;

            form.txtLicenceType.Enabled = false;
            form.txtLicenceType.Text    = l.TypeToString();
            form.lblScadenza.Text       = "ATTENZIONE! La licenza di prova scadrà tra " + l.RemainingDays.ToString() + " giorni.";
            form.lblScadenza.Visible    = true;
            form.txtTrial.Enabled       = false;
            form.txtTrial.Text          = l.TrialDays.ToString();

            form.txtRagSoc.Enabled = true;
            form.txtRagSoc.Text    = InstallationManager.Instance.Buyer.CustomerName;

            form.txtMail.Enabled = true;
            form.txtMail.Text    = InstallationManager.Instance.Buyer.Mail;

            form.txtLicenceType.Text = "PROVA";

            form.txtHardwareId.Text = InstallationManager.Instance.Licence.HardwareId;
        }
コード例 #3
0
        public void InitializeInterface(InstallationForm form)
        {
            ILicence l = InstallationManager.Instance.Licence;

            form.cmdCancel.Enabled  = true;
            form.cmdInstall.Enabled = true;
            form.cmdTrial.Enabled   = false;
            form.cmdAll.Enabled     = false;

            form.txtCode.Enabled = true;
            //form.txtCode.Text = l.ActivationCode;

            form.txtLicenceType.Enabled = false;
            form.txtLicenceType.Text    = l.TypeToString();
            form.lblScadenza.Text       = "ATTENZIONE! Licenza scaduta. Inserire un codice di attivazione.";
            form.lblScadenza.Visible    = true;
            form.txtTrial.Enabled       = false;
            form.txtTrial.Text          = "0";

            form.txtRagSoc.Enabled = true;
            form.txtRagSoc.Text    = InstallationManager.Instance.Buyer.CustomerName;

            form.txtMail.Enabled = true;
            form.txtMail.Text    = InstallationManager.Instance.Buyer.Mail;

            form.TypeOfRequestedLicence = LicenceTypes.All;
            form.txtLicenceType.Text    = "PROVA";
        }