コード例 #1
0
ファイル: MainVM.cs プロジェクト: tamj0rd2/IC-Combiner
        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);
        }
コード例 #2
0
ファイル: DatabaseVM.cs プロジェクト: tamj0rd2/IC-Combiner
 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;
 }