Exemple #1
0
 public AddEditFinancialYearViewModel(IFinancialYearsService financialYearsService, IAppContextService appContextService)
 {
     _financialYearsService = financialYearsService;
     _appContextService     = appContextService;
     CancelCommand          = new RelayCommand(OnCancel);
     SaveCommand            = new RelayCommand(OnSave, CanSave);
 }
Exemple #2
0
        public FinancialYearListViewModel(IFinancialYearsService FinancialYearsService, ICompanyInformationsService companyInformationsService)
        {
            _companyInformationsService = companyInformationsService;
            CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
            _FinancialYearsService      = FinancialYearsService;
            AddFinancialYearCommand     = new RelayCommand(OnAddFinancialYear);
            EditFinancialYearCommand    = new RelayCommand <FinancialYear>(OnEditFinancialYear);
            DeleteCommand = new RelayCommand <FinancialYear>(OnDeleteFinancialYear);


            _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
        }
Exemple #3
0
 public FinancialYearsPresenter(IFinancialYearsView iFinancialYearsView, IFinancialYearsService iFinancialYearsService)
 {
     _iFinancialYearsView   = iFinancialYearsView;
     _iFinacialYearsService = iFinancialYearsService;
 }