Esempio n. 1
0
 private void OnOverShortDetailsFilterExpressionChanged(object sender, NotificationEventArgs e)
 {
     OverShortDetails.Refresh();
     SelectedOverShortDetails.Clear();
     NotifyPropertyChanged(x => SelectedOverShortDetails);
     BeginSendMessage(MessageToken.SelectedOverShortDetailsChanged, new NotificationEventArgs(MessageToken.SelectedOverShortDetailsChanged));
 }
        private void SetSelectetal()
        {
            var lst = SelectedOverShortDetails.Where(x => x != null).ToList();

            if (!lst.Any())
            {
                SelectedReceivedValue = 0;
                SelectedInvoiceValue  = 0;
            }
            else
            {
                SelectedReceivedValue = Convert.ToDecimal(lst.Sum(x => x.ReceivedValue));
                SelectedInvoiceValue  = Convert.ToDecimal(lst.Sum(x => x.InvoiceValue));
            }
        }