示例#1
0
        private CardSource()
        {
            cardSource = new CardSourceDataSet();
            adapterManager = new TableAdapterManager();
            dataSourceAdapter = new DataSourceTableAdapter();
            monsterSourceAdapter = new MonsterTableAdapter();
            trapSourceAdapter = new TrapTableAdapter();
            spellSourceAdapter = new SpellTableAdapter();

            adapterManager.DataSourceTableAdapter = this.dataSourceAdapter;
            adapterManager.MonsterTableAdapter = this.monsterSourceAdapter;

            dataSourceAdapter.Fill(cardSource.DataSource);
            monsterSourceAdapter.Fill(cardSource.Monster);
            trapSourceAdapter.Fill(cardSource.Trap);
            spellSourceAdapter.Fill(cardSource.Spell);
        }
示例#2
0
        private CardSource()
        {
            cardSource           = new CardSourceDataSet();
            adapterManager       = new TableAdapterManager();
            dataSourceAdapter    = new DataSourceTableAdapter();
            monsterSourceAdapter = new MonsterTableAdapter();
            trapSourceAdapter    = new TrapTableAdapter();
            spellSourceAdapter   = new SpellTableAdapter();

            adapterManager.DataSourceTableAdapter = this.dataSourceAdapter;
            adapterManager.MonsterTableAdapter    = this.monsterSourceAdapter;

            dataSourceAdapter.Fill(cardSource.DataSource);
            monsterSourceAdapter.Fill(cardSource.Monster);
            trapSourceAdapter.Fill(cardSource.Trap);
            spellSourceAdapter.Fill(cardSource.Spell);
        }