public static bool LicenseControl(string key) { LicenseServiceRequest licenseServiceRequest = new LicenseServiceRequest() { key = key, hddNo = GetHddNo(), hash = LicenseInformationHash.LicenseHash(key + GetHddNo(), Text), date = DateTime.Now }; var requestReturn = Client.LicenseCheck(licenseServiceRequest); return(requestReturn.checkCode == 1); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string hash = LicenseInformationHash.LicenseHash("MİRAÇ ÖZTÜRK", "SANCAK"); string text = LicenseJobSystem.Text; var getLicenseKey = IniControl.GetValue("LisansAnahtari"); Guid guid; bool guidStatus = Guid.TryParse(getLicenseKey, out guid); bool license = LicenseJobSystem.LicenseControl(getLicenseKey); string serialNumber = LicenseJobSystem.GetHddNo(); if (string.IsNullOrEmpty(getLicenseKey) || !guidStatus || !license || serialNumber != null) { UrunDogrulama ud = new UrunDogrulama(); if (ud.ShowDialog() != DialogResult.OK) { return; } } Application.Run(new UrunGirisEkrani()); }