示例#1
0
 public void RoundTotal()
 {
     _calculator.RoundTotal();
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("TipTxt"));
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("GrandTotalTxt"));
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("NumberOfPersons"));
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("TotalPerPersonTxt"));
 }
        public void RoundTotal()
        {
            _calculator.RoundTotal();

            RaisePropertyChanged(() => TipTxt);
            RaisePropertyChanged(() => GrandTotalTxt);
            RaisePropertyChanged(() => NumberOfPersons);
            RaisePropertyChanged(() => TotalPerPersonTxt);
        }