Пример #1
0
        void f_AuthWebService()
        {
            string sKey, sSerial;

            Lisans.f_GetLicenceSerialFromReg(out sKey, out sSerial);
            wsrc.AuthHeaderValue = new Yonetim.AuthHeader()
            {
                Username = sKey,
                Password = sSerial
            };
        }
Пример #2
0
        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
            }
        }