Exemple #1
0
        private void tbPhone_Value_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            StopMonOutTime();
            PubHelper.p_ShZyZ_KeyBoard_Type = "0";
            PubHelper.p_Keyboard_Input      = tbPhone_Value.Text;
            this.Opacity = PubHelper.OPACITY_GRAY;
            FrmKeyBoard_Num frmKey = new FrmKeyBoard_Num();

            frmKey.ShowDialog();
            this.Opacity       = PubHelper.OPACITY_NORMAL;
            tbPhone_Value.Text = PubHelper.p_Keyboard_Input;
            m_MobilePhone      = PubHelper.p_Keyboard_Input;

            BeginMonOutTime();
        }
Exemple #2
0
        private void btnOtherMoney_Click(object sender, RoutedEventArgs e)
        {
            StopMonOutTime();
            PubHelper.p_ShZyZ_KeyBoard_Type = "1";
            PubHelper.p_Keyboard_Input      = string.Empty;
            this.Opacity = PubHelper.OPACITY_GRAY;
            FrmKeyBoard_Num frmKey = new FrmKeyBoard_Num();

            frmKey.ShowDialog();
            this.Opacity = PubHelper.OPACITY_NORMAL;
            if (!string.IsNullOrEmpty(PubHelper.p_Keyboard_Input))
            {
                tbMoney_Value.Text = Convert.ToInt32(PubHelper.p_Keyboard_Input).ToString() + "元";
                try
                {
                    m_TotalMoney = Convert.ToInt32(PubHelper.p_Keyboard_Input) * 100;
                }
                catch
                {
                    m_TotalMoney = 0;
                }
            }
            BeginMonOutTime();
        }