public void ShowCharge(ChargeViewModel chargeViewModel)
 {
     EventHandler<EventArgs<ChargeViewModel>> handler = this.ShowChargeRequested;
     if (handler != null)
     {
         handler(this, new EventArgs<ChargeViewModel>(chargeViewModel));
     }
 }
        private void RemoveChargeFromReport(ChargeViewModel chargeViewModel)
        {
            chargeViewModel.ExpenseReportId = null;
            this._expenseReportChargesView.Charges.Remove(chargeViewModel);
            this._addChargesViewModel.Charges.Add(chargeViewModel);

            this.UpdateChargeSums();
        }
        private void AddChargeToReport(ChargeViewModel chargeViewModel)
        {
            this._addChargesViewModel.Charges.Remove(chargeViewModel);

            chargeViewModel.ExpenseReportId = this.ExpenseReport.ExpenseReportId;
            this._expenseReportChargesView.Charges.Add(chargeViewModel);

            this.UpdateChargeSums();
        }
Esempio n. 4
0
 public void ShowCharge(ChargeViewModel charge)
 {
     this.CurrentViewModel = charge;
 }
Esempio n. 5
0
 private void ViewCharge(ChargeViewModel chargeViewModel)
 {
     this._navigationService.ShowCharge(chargeViewModel);
 }
 private void ViewCharge(ChargeViewModel chargeViewModel)
 {
     this._navigationService.ShowCharge(chargeViewModel);
 }
        private void RemoveChargeFromReport(ChargeViewModel chargeViewModel)
        {
            chargeViewModel.ExpenseReportId = null;
            this._expenseReportChargesView.Charges.Remove(chargeViewModel);
            this._addChargesViewModel.Charges.Add(chargeViewModel);

            this.UpdateChargeSums();
        }
        private void AddChargeToReport(ChargeViewModel chargeViewModel)
        {
            this._addChargesViewModel.Charges.Remove(chargeViewModel);

            chargeViewModel.ExpenseReportId = this.ExpenseReport.ExpenseReportId;
            this._expenseReportChargesView.Charges.Add(chargeViewModel);

            this.UpdateChargeSums();
        }
 public void ShowCharge(ChargeViewModel charge)
 {
     this.CurrentViewModel = charge;
 }