private void checkCredentialsOnWeb()
        {
            if (sign_id.Text.Equals("") | !Information.IsNumeric(sign_id.Text))
            {
                return;
            }

            mainform.forwardPicBtn.Visible = false;
            mainform.backPicBtn.Visible    = false;
            translations = new languageTranslations(mainform.enVars);
            translations.load("busyDialog");
            var vars = new Dictionary <string, string>();

            vars.Add("task", "101");
            vars.Add("id", sign_id.Text.ToString().Replace(" ", ""));
            vars.Add("idkey", signInCode.Text.ToString().Replace(" ", ""));
            vars.Add("type", "unknown");

            // install default secret key
            mainform.enVars.secretKey   = mainform.defaultEncryptionKey;
            mainform.enVars.currentLang = mainform.settings.lang;
            checkCredentialsHttp        = new HttpDataPostData(mainform.enVars, mainform.settings.serverWebAddr + mainform.settings.ApiServerAddrPath);
            checkCredentialsHttp.loadQueue(vars);
            checkCredentialsHttp.startRequest();
        }
Example #2
0
        /* TODO ERROR: Skipped EndRegionDirectiveTrivia */
        /* TODO ERROR: Skipped RegionDirectiveTrivia */
        private void loadServerSettings()
        {
            taskManager.setStatus("loadServerSettings", Conversions.ToInteger(tasksManager.tasksManagerClass.BUSY));
            var vars = new Dictionary <string, string>();

            vars.Add("task", state.taskId["queries"]);
            vars.Add("request", "settings");
            loadCloudSettingsData = new HttpDataPostData(state);
            loadCloudSettingsData.initialize();
            loadCloudSettingsData.loadQueue(vars, null, null);
            loadCloudSettingsData.startRequest();
        }
        private void getSecretKey()
        {
            var vars = new Dictionary <string, string>();

            vars.Add("task", "1020");
            vars.Add("id", mainform.settings.userId);
            // INSTALL DEFAULT SECRET KEY
            mainform.enVars.secretKey   = mainform.defaultEncryptionKey;
            mainform.enVars.currentLang = mainform.settings.lang;
            getSecretHttp = new HttpDataPostData(mainform.enVars, mainform.settings.serverWebAddr + mainform.settings.ApiServerAddrPath);
            getSecretHttp.loadQueue(vars);
            getSecretHttp.startRequest();
        }
Example #4
0
        /* TODO ERROR: Skipped RegionDirectiveTrivia */
        public void doLogin(string _cardId, string codeTxt)
        {
            cardId = _cardId;
            var vars = new Dictionary <string, string>();

            vars.Add("task", state.taskId["login"]);
            vars.Add("id", cardId);
            vars.Add("idkey", codeTxt);
            vars.Add("type", "unknown");
            loadLoginData = new HttpDataPostData(state);
            loadLoginData.initialize();
            loadLoginData.loadQueue(vars, null, null);
            loadLoginData.startRequest();
        }
        private void registerComputerPIDonDB()
        {
            var vars = new Dictionary <string, string>();

            vars.Add("task", "1021");
            vars.Add("id", mainform.settings.userId);
            vars.Add("pid", mainform.settings.programId);
            // INSTALL DEFAULT SECRETE KEY
            mainform.enVars.secretKey   = mainform.settings.ApiEncryptionKey;
            mainform.enVars.currentLang = mainform.settings.lang;
            registerPC = new HttpDataPostData(mainform.enVars, mainform.settings.serverWebAddr + mainform.settings.ApiServerAddrPath);
            registerPC.loadQueue(vars);
            registerPC.startRequest();
        }
        private void send_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            if (!IsValidEmailFormat(email.Text))
            {
                return;
            }

            var vars = new Dictionary <string, string>();

            vars.Add("task", "1011");
            vars.Add("email", email.Text);
            vars.Add("type", "unknown");
            // install default secret key
            mainform.enVars.secretKey   = mainform.defaultEncryptionKey;
            mainform.enVars.currentLang = mainform.settings.lang;
            sendEmailHttp = new HttpDataPostData(mainform.enVars, mainform.settings.serverWebAddr + mainform.settings.ApiServerAddrPath);
            sendEmailHttp.loadQueue(vars);
            sendEmailHttp.startRequest();
        }
Example #7
0
        /* TODO ERROR: Skipped EndRegionDirectiveTrivia */
        /* TODO ERROR: Skipped RegionDirectiveTrivia */
        public void loadAddons() // REQUIRES VALID USER ID
        {
            changeDataLoadedState(true);
            if (enVars.userId.Equals(""))
            {
                changeDataLoadedState(false);
                enVars.addonsLoaded = false;
                return;
            }

            var vars = new Dictionary <string, string>();

            vars.Add("task", enVars.taskId["addons"]);
            vars.Add("id", enVars.userId);
            loadAddOnsData = new HttpDataPostData(enVars);
            loadAddOnsData.initialize();
            loadAddOnsData.loadQueue(vars, null, null);
            loadAddOnsData.startRequest();
        }