Beispiel #1
0
        public static int checkCloudState(string vCurrCloudName)
        {
            CloudProperties vCurrCloud = vCloudList.Find(item => item.CloudName == vCurrCloudName);

            string vSqlURL = prepareCloudQuery(vCurrCloudName, in2SqlLibrary.getCloudSqlCheck(vCurrCloud.CloudType));

            vSqlURL = In2SqlSvcTool.HttpGet(vSqlURL);

            if (vSqlURL.Length < 2)
            {
                return(-1);
            }

            return(1);
        }
Beispiel #2
0
        private void WF09BTTest_Click(object sender, EventArgs e)
        {
            string vSqlURL;

            vSqlURL = in2sqlSvcCloud.prepareCloudQuery_int(tbURL.Text, tbSQL.Text, tbLogin.Text, tbPassword.Text);

            vSqlURL = In2SqlSvcTool.HttpGet(vSqlURL);

            if (vSqlURL.Length < 2)
            {
                MessageBox.Show("Test Failed");
                return;
            }

            MessageBox.Show("Test Passed ");
            WF09BTOk.Enabled = true;

            vSqlURL = "Cloud" + vConnType + '.' + tbName.Text;

            in2SqlRegistry.setLocalValue(vSqlURL, "Url", tbURL.Text);
            in2SqlRegistry.setLocalValue(vSqlURL, "Login", tbLogin.Text);
            in2SqlRegistry.setLocalValue(vSqlURL, "Password", tbPassword.Text);
        }