public override void Start() { K3p.K3pSetServerInfo ssi = new K3p.K3pSetServerInfo(); WmK3pServerInfo.RegToServerInfo(KwmCfg.Cur, ssi.Info); K3p.kpp_lookup_rec_addr lra = new K3p.kpp_lookup_rec_addr(); lra.AddrArray = EmailList.ToArray(); m_kmodQuery = new KmodQuery(); m_kmodQuery.Submit(Wm.KmodBroker, new K3pCmd[] { ssi, lra }, HandleLookupRecAddrResult); }
/// <summary> /// Submit the login query to KMOD. /// </summary> private void SubmitKmodLoginQuery() { K3p.K3pLoginTest cmd = new K3p.K3pLoginTest(); cmd.Info.kps_login = KpsUserName; cmd.Info.kps_secret = KpsUserPwd; cmd.Info.secret_is_pwd = 1; cmd.Info.kps_net_addr = KpsAddr; cmd.Info.kps_port_num = 443; m_kmodQuery = new KmodQuery(); m_kmodQuery.Submit(Wm.KmodBroker, new K3pCmd[] { cmd }, OnKmodLoginResult); }
private void ConfigKPPSignIn_WizardNext(object sender, WizardPageEventArgs e) { // Clear the current query if there is one. this.Enabled = false; e.Cancel = true; ClearKmodQuery(); // Submit the login query. K3p.K3pLoginTest cmd = creds.GetLoginCommand(); m_query = new KmodQuery(); m_query.Submit(m_broker, new K3pCmd[] { cmd }, OnLoginResult); }
private void ConfigKPPSignIn_SetActive(object sender, CancelEventArgs e) { try { if (m_autoSignIn) { m_autoSignIn = false; this.Enabled = false; // Submit the login query. K3p.K3pLoginTest cmd = creds.GetLoginCommand(); m_query = new KmodQuery(); m_query.Submit(m_broker, new K3pCmd[] { cmd }, OnLoginResult); return; } if (m_skippedRegistration) SetWizardButtons(WizardButtons.Next | WizardButtons.Cancel); else SetWizardButtons(WizardButtons.Back | WizardButtons.Next | WizardButtons.Cancel); LoginSuccess = false; UpdateNextButton(); creds.ResetError(); creds.Focus(); creds.AdjustFocus(); } catch (Exception ex) { Base.HandleException(ex); } }
private void ConfigKPPCredentials_WizardNext(object sender, WizardPageEventArgs e) { // Clear the current query if there is one. ClearKmodQuery(); if (rbHaveAccount.Checked) { if (LoginSuccess) { e.NewPage = "ConfigKPPSuccess"; } else { this.Enabled = false; e.Cancel = true; // Submit the login query. K3p.K3pLoginTest cmd = creds.GetLoginCommand(); m_query = new KmodQuery(); m_query.Submit(m_broker, new K3pCmd[] { cmd }, OnLoginResult); } } else { e.NewPage = "ConfigKPPCreateAccount"; } }