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; }
/// <summary> /// Get adoxio_Licence from adoxio_hoursofservices /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='adoxioHoursofserviceid'> /// key: adoxio_hoursofserviceid of adoxio_hoursofservice /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MicrosoftDynamicsCRMadoxioLicences> GetAsync(this ILicence operations, string adoxioHoursofserviceid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(adoxioHoursofserviceid, select, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
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"; }
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"; }
public frmSplash(ILicence licence) { InitializeComponent(); this.pictureEdit1.Image = Image.FromFile(Application.StartupPath + "\\Imagens\\Background.jpeg"); this.licence = licence; this.labelCopyright.Text = "Copyright © 2016-" + DateTime.Now.Year.ToString(); LecencaOk = licence.LeituraLicençe(); if (Program.LicenceModelsHelps != null) { txtEmpresa.Text = Program.LicenceModelsHelps.FullName; txtProdutoID.Text = Program.LicenceModelsHelps.KeyID; ProdutoKey.Text = Program.LicenceModelsHelps.Key; txtLicençeType.Text = Program.LicenceModelsHelps.Dias; } }
public void InsertActivationCode(InstallationForm form) { ILicence l = InstallationManager.Instance.Licence; form.TypeOfRequestedLicence = LicenceTypes.All; form.cmdCancel.Enabled = true; form.cmdInstall.Enabled = true; form.cmdTrial.Enabled = true; form.cmdAll.Enabled = false; form.txtCode.Enabled = true; form.txtCode.Text = ""; form.txtLicenceType.Enabled = false; form.txtLicenceType.Text = "FULL"; form.txtTrial.Enabled = false; form.txtTrial.Text = ""; form.txtRagSoc.Enabled = true; form.txtMail.Enabled = true; }
/// <summary> /// Get adoxio_Licence from adoxio_hoursofservices /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='adoxioHoursofserviceid'> /// key: adoxio_hoursofserviceid of adoxio_hoursofservice /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse <MicrosoftDynamicsCRMadoxioLicences> GetWithHttpMessages(this ILicence operations, string adoxioHoursofserviceid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), Dictionary <string, List <string> > customHeaders = null) { return(operations.GetWithHttpMessagesAsync(adoxioHoursofserviceid, select, expand, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Get adoxio_Licence from adoxio_hoursofservices /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='adoxioHoursofserviceid'> /// key: adoxio_hoursofserviceid of adoxio_hoursofservice /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> public static MicrosoftDynamicsCRMadoxioLicences Get(this ILicence operations, string adoxioHoursofserviceid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>)) { return(operations.GetAsync(adoxioHoursofserviceid, select, expand).GetAwaiter().GetResult()); }
/// <summary> /// Get adoxio_Licence from adoxio_licenceldbordertotalhistories /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='adoxioLicenceldbordertotalhistoryid'> /// key: adoxio_licenceldbordertotalhistoryid of /// adoxio_licenceldbordertotalhistory /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> public static MicrosoftDynamicsCRMadoxioLicences Get3(this ILicence operations, string adoxioLicenceldbordertotalhistoryid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>)) { return(operations.Get3Async(adoxioLicenceldbordertotalhistoryid, select, expand).GetAwaiter().GetResult()); }