예제 #1
0
파일: frmCash.cs 프로젝트: leo-xzm/xjgjwl
        /// <summary>
        /// 显示自定义输入窗
        /// </summary>
        /// <param name="type"></param>
        private void InputBoxShow(OrderHandleType type)
        {
            inputBox = new InputBox(type);

            if (type == OrderHandleType.cash)
            {
                //输入框显示已有的数量
                TextBox input = (TextBox)inputBox.Controls.Find("txtInput", false).FirstOrDefault();
                input.Text = CashNum[SelectedCash].ToString();
            }

            Controls.Add(inputBox);
            inputBox.BringToFront();

            Point location = new Point(120, 140);

            inputBox.Location = location;

            InputBoxBindingMinikeyboard();
            inputBox.VisibleChanged += new System.EventHandler(this.inputBox_VisibleChanged);
        }