Example #1
0
        public void Test_DblInput()
        {
            double val = 0.0;

            ModalFormHandler = InputBox_btnAccept_DblHandler;
            GKInputBox.QueryDouble("caption", "prompt", out val);

            Assert.AreEqual(15.59, val);
        }
Example #2
0
        public void Test_PwInput()
        {
            string strValue = "";

            ModalFormHandler = InputBox_btnAccept_StrHandler;
            GKInputBox.QueryPassword("caption", "prompt", ref strValue);

            Assert.AreEqual("input", strValue);
        }
Example #3
0
        public void Test_IntInput()
        {
            int intValue = 0;

            ModalFormHandler = InputBox_btnAccept_IntHandler;
            GKInputBox.QueryInt("caption", "prompt", out intValue);

            Assert.AreEqual(123, intValue);
        }
Example #4
0
        public bool GetPassword(string prompt, ref string value)
        {
            bool res = GKInputBox.QueryPassword(GKData.APP_TITLE, prompt, ref value);

            return(res && !string.IsNullOrEmpty(value));
        }
Example #5
0
        public bool GetInput(object owner, string prompt, ref string value)
        {
            bool res = GKInputBox.QueryText(owner, GKData.APP_TITLE, prompt, ref value);

            return(res && !string.IsNullOrEmpty(value));
        }