private void DeleteCommandExecute()
        {
            if (_hasOperation)
            {
                return;
            }

            if (!String.IsNullOrWhiteSpace(DisplayValue))
            {
                DisplayValue = DisplayValue.Remove(DisplayValue.Length - 1);
            }
        }
Example #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();
         }
     }
 }