public KAnonimizationViewModel(FileService fileService) : base(fileService) { _parameterK = 1; ColumnNames = new ObservableCollection <string> { "Age", "City", "FirstName", "Surname", "Job", "All columns" }; _selectedColumnName = "Age"; _anonimizationAlgortihm = new KAgeAnonimization(ParameterK); KAnonimizationCommand = new RelayCommand(KAnonimizationAlgorithm); }
private void KAnonimizationAlgorithm() { _anonimizationAlgortihm = DetermineAlgorithm(); People = new ObservableCollection <Person>(_anonimizationAlgortihm.GetAnonymizedData(People)); _fileService.SavePeopleDataInTemporaryFile(People); }