public MainVM() { Database database = new Database(); ImportExportHandler importExportHandler = new ImportExportHandler(database); CreatureCsvWriter creatureCsvWriter = new CreatureCsvWriter(); CreatureDataVM = new CreatureDataVM(database); FiltersVM = new FiltersVM(CreatureDataVM); DatabaseVM = new DatabaseVM(CreatureDataVM, FiltersVM, database, importExportHandler, creatureCsvWriter); SelectedCreatureVM = new SelectedCreatureVM(CreatureDataVM); }
public DatabaseVM( CreatureDataVM newCreatureVM, FiltersVM filtersVM, Database database, ImportExportHandler importExportHandler, CreatureCsvWriter creatureCsvWriter) { m_NewCreatureVM = newCreatureVM; m_FiltersVM = filtersVM; m_Database = database; m_ImportExportHandler = importExportHandler; m_CreatureCsvWriter = creatureCsvWriter; }