private void button3_Click(object sender, EventArgs e) { var filter = GetFilter(); var digimon = new DigimonList(); digimon.LoadDigimon(); digimon.FilterList(filter); new ImageGenerator().SaveGeneratedImage(digimon.DigimonCollection); }
private void Export_Click(object sender, EventArgs e) { var filter = GetFilter(); var loader = new DigimonFileLoader(null); var digimon = new DigimonList(); digimon.LoadDigimon(); digimon.FilterList(filter); loader.SaveDigimon(digimon.DigimonCollection, "DigimonListExport.xml"); }
private void Filter(object sender, DigimonFilter e) { _digimonList.FilterList(e); SetDigimon(_digimonList.DigimonCollection.FirstOrDefault(x => x.Number == 1)); _filter = e; var form = sender as FilterForm; if (form != null) { form.FilterSet -= Filter; } }