Esempio n. 1
0
 public static void startInput(KeyDown input, Action delete, Action clear, Action ok, Action cancel, UIElement u)
 {
     if (!init())
     {
         return;
     }
     if (ui == null)
     {
         ui = new ThreadProperty(50, true, false, uiHandle, u);
     }
     Input  = input;
     Delete = delete;
     Clear  = clear;
     Ok     = ok;
     Cancel = cancel;
     tp.start();
 }
Esempio n. 2
0
        private static void readKey()
        {
            pOutInfo.Clear();
            StringBuilder keyValue = new StringBuilder();
            //if (canReadKey == false)
            //    return;
            int ret = iGetPressKey(keyValue, pOutInfo);

            if (ret == 0)
            {
                keyValue2 = keyValue;
                ui.start();
            }
            else
            {
                Log.AddLog("密码键盘", "error:" + pOutInfo.ToString());
            }
        }