Beispiel #1
0
        public PrimkeViewModel(IXlsFileReader xlsFileReader,
                               IBookUraEndpoint bookUraEndpoint,
                               IDialogService showDialog,
                               IBookAccountSettingsEndpoint settingsEndpoint,
                               IAccountPairsEndpoint accoutPairsEndpoint)
        {
            _xlsFileReader       = xlsFileReader;
            _bookUraEndpoint     = bookUraEndpoint;
            _showDialog          = showDialog;
            _settingsEndpoint    = settingsEndpoint;
            _bookName            = "Primke robe";
            _accoutPairsEndpoint = accoutPairsEndpoint;

            LoadDataCommand         = new DelegateCommand(LoadDataFromFile);
            SaveDataCommand         = new DelegateCommand(SaveToDatabase, CanSavePrimke);
            AccountsSettingsCommand = new DelegateCommand(OpenAccountsSettings);
            FilterDataCommand       = new DelegateCommand(FilterPrimke);
            ProcessItemCommand      = new DelegateCommand(ProcessItem, CanProcess);
        }