public bool StartInput(DynInputCtrl inputCtrl) { _currInputCtrl = inputCtrl; _currInputCtrl.position = _position; _currInputCtrl.Start(); return(true); }
/// <summary> /// 启动命令动态输入 /// </summary> public bool StartCmd(KeyEventArgs e) { // 非字符则返回false if ((uint)e.KeyCode < 65 || (uint)e.KeyCode > 90) { return(false); } // _currInputCtrl = _cmdInput; _cmdInput.position = _position; _cmdInput.text = KeyDataToString(e.KeyData); _cmdInput.Start(); return(true); }