Ejemplo n.º 1
0
 private void BtnErase_Click(object sender, RoutedEventArgs e)
 {
     if (CurentText.Length > 0)
     {
         CurentText = CurentText.Substring(0, CurentText.Length - 1);
     }
 }
Ejemplo n.º 2
0
        private void Btn1_Click(object sender, RoutedEventArgs e)
        {
            if (NextTouchClear)
            {
                CurentText     = "";
                NextTouchClear = false;
            }
            string Cont = ((Button)sender).Content.ToString();

            if (CurentText.Length < 13)
            {
                if (Cont == GetDemSep().ToString())
                {
                    if (CurentText.Contains(GetDemSep().ToString()))
                    {
                        return;
                    }
                }
                CurentText = CurentText + Cont;
            }
        }