Esempio n. 1
0
        private static void InitLicense()
        {
            CryptoLicenseEx.Instance.ValidationKey = "AAACgAC1gZoB/dERmxCn0Snbza4iV2Rc85bYGEqgRa67V8Q7RuJGxVFTh4FpYAJ16eRo8tg79BXaM/2Yjad8JcMFm8Yh8C82DwFQIOvOX5gWjG92/AtPgf9gyhzTBFmm0pUYAbSwT6599/d/ev2GN4ilIM1PtYuYfFIY1mnL2v/9e0oR/QMAAQAB";
            //CryptoLicenseEx.Instance.LicenseServiceURL = "http://www.bizguide.ge/LicenseService/Service.asmx";
            CryptoLicenseEx.Instance.LicenseURL = "http://bizguide.ge/LicenseService/LicenseService.asmx";
            //CryptoLicenseEx.Instance.LicenseServiceSettingsFilePath = @"%AppDomainAppPath%App_Data\ApothexSettings.xml";


            if (!CryptoLicenseEx.Instance.Load() || CryptoLicenseEx.Instance.Status != LicenseStatus.Valid)//თუ ვერ ჩატვირთა ან ჩატვირთული ლიცენზია არასწორია მაშინ გამოიტანოს დიალოგური ფანჯარა.
            {
                CryptoLicenseEx.ShowDialog();
            }
        }
Esempio n. 2
0
 private void miLicense_ItemClick(object sender, ItemClickEventArgs e)
 {
     CryptoLicenseEx.ShowDialog();
     InitLicence();
 }