Beispiel #1
0
 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();
 }
Beispiel #2
0
 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();
 }
Beispiel #3
0
 public void CloseDialog(InstallationForm form)
 {
     form.Close();
 }