Exemple #1
0
 private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         InstallationForm frm = InstallationFormFactory.GetFormOnViewLicenceOrUpdateIfIsTrial(InstallationManager.Instance.Licence.HardwareId);
         frm.ShowDialog();
         frm.Dispose();
         MemoryHelper.ReduceMemory();
     }
     catch (Exception ex)
     {
         ErrorHandler.Show(ex);
     }
 }
Exemple #2
0
        public void Execute()
        {
            //Qui apro il form di attivazione
            if (_isFirstRun)
            {
                InstallationManager.Instance.InstallationInfo.FirstRunDate = DateTime.Now;
            }

            InstallationForm frm = InstallationFormFactory.GetFormOnFirstApplicationRunOrInvalidLicence(_isFirstRun, _isLicenceNotValid, _hardwareId);

            if (frm != null)
            {
                ShowForm(frm);
            }
        }