コード例 #1
0
 public Class1(Repository repository, IUserMsgService userMsgService, IServiceLocator serviceLocator)
 {
     _repository       = repository;
     _userMsgService   = userMsgService;
     _serviceLocator   = serviceLocator;
     _excelApplication = (Application)ExcelDnaUtil.Application;
 }
コード例 #2
0
        public PrimaryProcessingsViewModel(Repository repository, IUserMsgService userMsgService, IServiceLocator serviceLocator)
        {
            _repository     = repository;
            _userMsgService = userMsgService;
            _serviceLocator = serviceLocator;

            _excelApplication = (Application)ExcelDnaUtil.Application;
            _excelApplication.SheetSelectionChange += _excelApplication_SheetSelectionChange;
        }
コード例 #3
0
        public OptionsViewModel(IServiceLocator serviceLocator, Repository repository, IUserMsgService userMsgService, IFileBrowserDialog fileBrowserDialog)
        {
            _serviceLocator    = serviceLocator;
            _repository        = repository;
            _userMsgService    = userMsgService;
            _fileBrowserDialog = fileBrowserDialog;

            Data = _repository.Options;
        }
コード例 #4
0
        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();
                }
            };
        }
コード例 #5
0
        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();
                }
            };
        }
コード例 #6
0
 public Repository(IDataService dataService, IUserMsgService userMsgService, IServiceLocator serviceLocator)
 {
     _dataService    = dataService;
     _userMsgService = userMsgService;
     _serviceLocator = serviceLocator;
 }
コード例 #7
0
 public AppUserMsg(IUserMsgService usermsgService)
 {
     _usermsgService = usermsgService;
 }