public void SendData()
 {
     _eventAggregator.PublishOnUIThread(new AddManyPaystubsEventModel(PaystubDataList.ToList(), AddToSelection.Code));
     ClearInputFields();
     PaystubDataList = new BindableCollection <Paystub>();
     this.TryClose(null);
 }
Exemple #2
0
        public void CalculatePaystubs()
        {
            Tuple <List <Paystub>, Tuple <decimal, decimal, decimal>, Tuple <decimal, decimal> > calcOut =
                PaystubCalculator.BeginCalc(
                    MessageManager.DisplayMessage,
                    ConvertWarning,
                    PaystubDataList.ToList(),
                    (decimal)AccuracyInput
                    );

            Decision = PaystubCalculator.Decision;

            //Tuple 1
            PaystubDataList = new BindableCollection <Paystub>(calcOut.Item1);

            // Tuple 2
            AverageGross   = calcOut.Item2.Item1;
            AverageNet     = calcOut.Item2.Item2;
            AveragePercent = calcOut.Item2.Item3;

            // Tuple 3
            PercentDifference  = calcOut.Item3.Item1;
            CompletePaystubOut = calcOut.Item3.Item2;
        }
Exemple #3
0
 public void CalculatePercentages()
 {
     PaystubDataList = new BindableCollection <Paystub>(Paystub.GetPercentages(PaystubDataList.ToList()));
 }