예제 #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();
 }
예제 #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();
 }