예제 #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();
 }
예제 #2
0
 internal bool IsAuthenticated()
 {
     try {
         return(Lima.CheckModuleAuthenticated(GetModuleId(), GetAuthCode()) == 0);
     } catch (Exception) {
     }
     return(false);
 }
예제 #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 + ".");
            }
        }
예제 #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) {
         }
     }
 }
예제 #5
0
파일: Lima.cs 프로젝트: dwhobrey/BabelTools
 public static string LimaTest()
 {
     return(Lima.GetDrive("C"));
 }
예제 #6
0
 void removeLicenseButton_Click(object sender, EventArgs e)
 {
     Lima.RemoveLicenses();
     this.CurrentKeys.Text = "None";
     Settings.BugReport("Restart application for changes to take effect.");
 }