public Class1(Repository repository, IUserMsgService userMsgService, IServiceLocator serviceLocator) { _repository = repository; _userMsgService = userMsgService; _serviceLocator = serviceLocator; _excelApplication = (Application)ExcelDnaUtil.Application; }
public PrimaryProcessingsViewModel(Repository repository, IUserMsgService userMsgService, IServiceLocator serviceLocator) { _repository = repository; _userMsgService = userMsgService; _serviceLocator = serviceLocator; _excelApplication = (Application)ExcelDnaUtil.Application; _excelApplication.SheetSelectionChange += _excelApplication_SheetSelectionChange; }
public OptionsViewModel(IServiceLocator serviceLocator, Repository repository, IUserMsgService userMsgService, IFileBrowserDialog fileBrowserDialog) { _serviceLocator = serviceLocator; _repository = repository; _userMsgService = userMsgService; _fileBrowserDialog = fileBrowserDialog; Data = _repository.Options; }
public RegexListViewModel(IServiceLocator serviceLocator, IUserMsgService userMsgService, Repository repository) { _serviceLocator = serviceLocator; _userMsgService = userMsgService; _repository = repository; SetItems(); (repository as INotifyPropertyChanged).PropertyChanged += (sender, args) => { if (args.PropertyName == "RegexList") { SetItems(); } }; }
public AddressListViewModel(IServiceLocator serviceLocator, IUserMsgService userMsgService, Repository repository) { _serviceLocator = serviceLocator; _userMsgService = userMsgService; _repository = repository; createView(); (this as INotifyPropertyChanged).PropertyChanged += (obj, args) => { if (args.PropertyName == nameof(FindText)) { Items?.Refresh(); } }; (repository as INotifyPropertyChanged).PropertyChanged += (sender, args) => { if (args.PropertyName == "AddressList") { createView(); } }; }
public Repository(IDataService dataService, IUserMsgService userMsgService, IServiceLocator serviceLocator) { _dataService = dataService; _userMsgService = userMsgService; _serviceLocator = serviceLocator; }
public AppUserMsg(IUserMsgService usermsgService) { _usermsgService = usermsgService; }