private void UpdateLicence(InstallationForm form) { InstallationManager.Instance.Licence = LicenceFactory.CreateFullLicence(DateTime.Now, form.txtCode.Text, form.txtHardwareId.Text); InstallationManager.Instance.Buyer = SoftwareBuyerFactory.CreateSoftwareBuyer(form.txtRagSoc.Text, form.txtMail.Text); InstallationManager.Instance.UpdateInstallInfo(); SendConfirmMessage(); form.DialogResult = DialogResult.OK; form.Close(); }
private void Save(InstallationForm form) { InstallationManager.Instance.Licence = LicenceFactory.CreateLicence(form.TypeOfRequestedLicence, DateTime.Now, form.txtCode.Text, null, 30, form.txtHardwareId.Text); InstallationManager.Instance.Buyer = SoftwareBuyerFactory.CreateSoftwareBuyer(form.txtRagSoc.Text, form.txtMail.Text); InstallationManager.Instance.InsertInstallInfo(); SendConfirmMessage(form.TypeOfRequestedLicence); form.DialogResult = DialogResult.OK; form.Close(); }
public void CloseDialog(InstallationForm form) { form.Close(); }