Esempio n. 1
0
 public LicenseBox()
 {
     InitializeComponent();
     this.Owner            = Application.Current.MainWindow;
     this.Title            = Settings.AppName + " Licensing";
     this.ComputerKey.Text = Lima.GetComputerKey();
     this.CurrentKeys.Text = Lima.GetLicensesDetails();
 }
Esempio n. 2
0
 internal bool IsAuthenticated()
 {
     try {
         return(Lima.CheckModuleAuthenticated(GetModuleId(), GetAuthCode()) == 0);
     } catch (Exception) {
     }
     return(false);
 }
Esempio n. 3
0
        void addLicenseButton_Click(object sender, EventArgs e)
        {
            int    numAdded   = 0;
            int    numInvalid = 0;
            string s          = this.AddKeys.Text;
            string r          = Lima.UpdateLicenses(s, out numAdded, out numInvalid);

            if (numAdded > 0)
            {
                this.CurrentKeys.Text = Lima.GetLicensesDetails();
                Modules.UpdateInstalledModules();
            }
            if (numInvalid > 0)
            {
                Settings.BugReport("Unable to add " + numInvalid + " license(s): " + r + ".");
            }
        }
Esempio n. 4
0
 public static void StartApp()
 {
     Lima.LoadLicenses();
     LoadModules();
     if (ModuleAddIns.Count < 2)
     {
         Settings.BugReport("Modules.StartApp: warning: only Core module loaded.");
     }
     UpdateInstalledModules();
     foreach (Module m in ModuleAddIns)
     {
         try {
             if (m.AuthStartApp())
             {
                 break;
             }
         } catch (Exception) {
         }
     }
 }
Esempio n. 5
0
 public static string LimaTest()
 {
     return(Lima.GetDrive("C"));
 }
Esempio n. 6
0
 void removeLicenseButton_Click(object sender, EventArgs e)
 {
     Lima.RemoveLicenses();
     this.CurrentKeys.Text = "None";
     Settings.BugReport("Restart application for changes to take effect.");
 }