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()); }
private void keyCheck_Click(object sender, EventArgs e) { IniControl.SetValue("", keyBox.Text); DialogResult = DialogResult.OK; }