public static bool ApplyNewLicense(string license)
        {
            bool   good = false;
            string dec  = DecryptSimpleLicense(license);
            string type = dec.Substring(0, 1);

            if (types.Contains(type))
            {
                good = true;
                SQLiteController db = new SQLiteController();
                BusinessSettings bs = db.PullBusinessSettings();
                bs.LicenseType = dec;
                bs.License     = license;
                db.UpdateBusinessSettings(bs);
            }
            return(good);
        }
        public static int CheckCurrentLicense()
        {
            SQLiteController db   = new SQLiteController();
            BusinessSettings bs   = db.PullBusinessSettings();
            string           type = bs.LicenseType;
            int output;

            if (type == "00")
            {
                output = 0;
            }
            else
            {
                string decrypt = DecryptSimpleLicense(bs.License);
                output = type == decrypt ? 2 : 1;
            }
            return(output);
        }