void f_AuthWebService() { string sKey, sSerial; Lisans.f_GetLicenceSerialFromReg(out sKey, out sSerial); wsrc.AuthHeaderValue = new Yonetim.AuthHeader() { Username = sKey, Password = sSerial }; }
private void btnGenerateSerial_Click(object sender, EventArgs e) { try { tbSeriNo.Text = Lisans.f_GetSerialFromKey(tbAnahtar.Text); } catch (Exception ex) { MessageBox.Show(ex.Message, "Lisanslama", MessageBoxButtons.OK, MessageBoxIcon.Error); #if DEBUG throw (ex); #endif } }