コード例 #1
0
 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);
 }
コード例 #2
0
 private void KAnonimizationAlgorithm()
 {
     _anonimizationAlgortihm = DetermineAlgorithm();
     People = new ObservableCollection <Person>(_anonimizationAlgortihm.GetAnonymizedData(People));
     _fileService.SavePeopleDataInTemporaryFile(People);
 }