public AddEditFinancialYearViewModel(IFinancialYearsService financialYearsService, IAppContextService appContextService) { _financialYearsService = financialYearsService; _appContextService = appContextService; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); }
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>(); }
public FinancialYearsPresenter(IFinancialYearsView iFinancialYearsView, IFinancialYearsService iFinancialYearsService) { _iFinancialYearsView = iFinancialYearsView; _iFinacialYearsService = iFinancialYearsService; }