public override void Execute(object parameter)
        {
            var btn = parameter as Button;

            if (!_data.IsResult)
            {
                if (_data.Display == $"{i}")
                {
                    _data.Display = btn.Content.ToString();
                }
                else
                {
                    _data.Display += btn.Content.ToString();
                }
            }
            else
            {
                if (_data.IsError)
                {
                    _data.IsError = false;
                    BtnCleanClickCommand.CleanData(_data, i);
                }
                _data.Display  = btn.Content.ToString();
                _data.IsResult = false;
            }
        }
Пример #2
0
 public override void Execute(object parameter)
 {
     _data.Display = $"{i}";
     if (_data.IsError)
     {
         BtnCleanClickCommand.CleanData(_data, i);
     }
 }