Пример #1
0
        private void DeleteCommandExecute()
        {
            if (_hasOperation)
            {
                return;
            }

            if (!String.IsNullOrWhiteSpace(DisplayValue))
            {
                DisplayValue = DisplayValue.Remove(DisplayValue.Length - 1);
            }
        }
Пример #2
0
 private void DeleteCommandExecute(object obj)
 {
     if (DisplayValue != string.Empty)
     {
         int txtLength = DisplayValue.Length;
         if (txtLength != 1)
         {
             string newDisplay = DisplayValue.Remove(txtLength - 1);
         }
         else
         {
             string newDisplay = 0.ToString();
         }
     }
 }