Exemple #1
0
        bool Port2EntryHex(string str)
        {
            string funcName = $"<{nameof(Port2EntryHex)}>";
            string input;
            bool   _return = Tests.loadEntryMenu(Run, msg, label, image, out input);

            if (_return)
            {
                Port2_Hex(input);
            }
            return(_return ? OkCmd(funcName) : FailCmd(funcName));
        }
Exemple #2
0
        bool Port1EntryHex(string str)
        {
            string funcName = $"<{nameof(Port1EntryHex)}>";
            bool   formPass = true;
            string msgForm  = this.msg;

            while (formPass)
            {
                string input;
                formPass = Tests.loadEntryMenu(null, msgForm, label, image, out input);
                if (!formPass)
                {
                    return(false);
                }
                if (CheckInput(input, str, ref msgForm))
                {
                    return(Port1_Hex(input));
                }
            }
            return(FailCmd(funcName));
        }