Exemplo n.º 1
0
        private void btnClear_Click(object sender, EventArgs e)
        {
            UserInputPanel txt = this.GetActiveInput();

            if (txt != null)
            {
                txt.Text = string.Empty;
            }
        }
Exemplo n.º 2
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            UserInputPanel txt = this.GetActiveInput();

            if (txt != null)
            {
                if (txt.Text.Length > 0)
                {
                    txt.Text = txt.Text.Substring(0, txt.Text.Length - 1);
                }
            }
        }
Exemplo n.º 3
0
        private void numButton1_Click(object sender, EventArgs e)
        {
            UserInputPanel txt = this.GetActiveInput();

            if (txt != null)
            {
                Label lb = sender as Label;
                if (txt.Text.Length == txt.MaxInputLength)
                {
                    return;
                }
                txt.Text += lb.Text;
                if (txt == this.txtMobile && txt.Text.Length >= 11)
                {
                    //this.txtMobile.Focused = false;
                    this.txtValidCode.Focus();
                    this.txtMobile.UnFocus();
                }
            }
        }