public TaxCalculationListVm(bool isRectifying) { this.isRectifying = isRectifying; this.Title = ""; SaveCommand = new DelegateCommand(Save, CanSave); CreateCommand = new DelegateCommand(Create, CanCreate); DeleteCommand = new DelegateCommand(Delete, CanDelete); EditCommand = new DelegateCommand(Edit, CanEdit); this.ModifyCommand = new DelegateCommand(Modify, CanModify); this.EditIndicatorsCommand = new DelegateCommand(EditIndicators, CanEditIndicators); this.ViewCommand = new DelegateCommand(View, CanView); this.FilterCommand = new DelegateCommand(Filter, CanFilter); this.ClearFiltersCommand = new DelegateCommand(ClearFilters, CanClearFilters); this.ChangeReportNameCommand = new DelegateCommand(ChangeReportName, CanChangeReportName); Mediator.Instance.Register(MediatorActionType.RefreshList, RefreshList); Mediator.Instance.Register(MediatorActionType.SetRemainingDays, SetRemainingDays); taxCalculationRepository = new TaxCalculationsRepository(); companyRepository = new CompanyRepository(); LoadInitialData(); //if no company exists, do not continue loading data if (SelectedCompany == null) { return; } RefreshList(null); RemainingDays = CurrentRemainingDaysMessage; }
public ExistingTaxCalculationCompletionVm() { Mediator.Instance.Register(MediatorActionType.ExecuteTaxCalculation, ExecuteTaxCalculation); Mediator.Instance.Register(MediatorActionType.SetSetupModel, SetSetupModel); this.SaveCommand = new DelegateCommand(Save, CanSave); this.BackCommand = new DelegateCommand(Back, CanBack); indicatorRepository = new IndicatorRepository(); taxCalculationRepository = new TaxCalculationsRepository(); Rectifying = Visibility.Collapsed; }
public TaxCalculationSetupVm() { this.CreateCoinTypeCommand = new DelegateCommand(CreateCoinType, CanCreateCoinType); this.AddValuesCommand = new DelegateCommand(AddValues, CanAddValues); settingsRepository = new SettingsRepository(); companyRepository = new CompanyRepository(); indicatorRepository = new IndicatorRepository(); taxCalculationsRepository = new TaxCalculationsRepository(); Rectifying = false; LoadData(); }
public PrintPreviewVm() { InitializeCommands(); Mediator.Instance.Register(MediatorActionType.SetReportData, SetReportData); Mediator.Instance.Register(MediatorActionType.ExecuteTaxCalculation, ExecuteTaxCalculation); indicatorRepository = new IndicatorRepository(); taxCalculationRepository = new TaxCalculationsRepository(); PrintData = new PrintDataModel(); PrintData.Pages = new List<PrintPage>(); PrintData.Pages.Add(new PrintPage()); PrintData.Pages[0].Rows = new List<PrintRow>(); //LoadData(); }