Exemplo n.º 1
0
        /// <summary>
        /// 数字输入
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnNumber_Click(object sender, RoutedEventArgs e)
        {
            if (m_Input.Length >= 6)
            {
                return;
            }
            string strInput = DictionaryHelper.Dictionary_Input(sender.ToString());

            m_Input = m_Input + strInput;
            switch (m_PwdType)
            {
            case "0":    // 旧密码
                m_Input_Old = m_Input;
                tbInput_Old.AppendText("*");
                tbInput_Old.Select(tbInput_Old.Text.Length, 0);
                break;

            case "1":    // 新密码
                m_Input_New = m_Input;
                tbInput_New.AppendText("*");
                tbInput_New.Select(tbInput_New.Text.Length, 0);
                break;

            case "2":    // 确认密码
                m_Input_Confirm = m_Input;
                tbInput_Confirm.AppendText("*");
                tbInput_Confirm.Select(tbInput_Confirm.Text.Length, 0);
                break;
            }

            ////tbInput.Text = tbInput.Text + "*";
        }
        private void btnNumber_Click(object sender, RoutedEventArgs e)
        {
            string strInput = DictionaryHelper.Dictionary_Input(sender.ToString());

            m_Input      = m_Input + strInput;
            tbInput.Text = m_Input;
        }
Exemplo n.º 3
0
        /// <summary>
        /// 数字输入
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnNumber_Click(object sender, RoutedEventArgs e)
        {
            AfreshMonOutTime();
            m_IsMonTime = true;

            if (m_Input.Length >= 11)
            {
                return;
            }
            string strInput = DictionaryHelper.Dictionary_Input(sender.ToString());

            m_Input      = m_Input + strInput;
            tbInput.Text = tbInput.Text + strInput;
        }
Exemplo n.º 4
0
        private void btnNumber_Click(object sender, RoutedEventArgs e)
        {
            string strInput = DictionaryHelper.Dictionary_Input(sender.ToString());

            tbMoney_Value.Text = strInput;
            try
            {
                strInput = strInput.Replace("元", "");
                if (!string.IsNullOrEmpty(strInput))
                {
                    m_TotalMoney = Convert.ToInt32(strInput) * 100;
                }
            }
            catch
            {
                m_TotalMoney = 0;
            }
        }