예제 #1
0
        private LoadDeck()
        {
            _listcard = new LinkedList<Card>();
            this.dataset = new CardSourceDataSet();
            this.adapterManager = new TableAdapterManager();
            this.deckInfoTableAdapter = new DeckInfoTableAdapter();
            this.dataSourceTableAdapter = new DataSourceTableAdapter();

            this.adapterManager.DeckInfoTableAdapter = this.deckInfoTableAdapter;
            this.adapterManager.DataSourceTableAdapter = this.dataSourceTableAdapter;
            this.deckInfoTableAdapter.Fill(dataset.DeckInfo);
            this.dataSourceTableAdapter.Fill(dataset.DataSource);
        }
예제 #2
0
        private LoadDeck()
        {
            _listcard                   = new LinkedList <Card>();
            this.dataset                = new CardSourceDataSet();
            this.adapterManager         = new TableAdapterManager();
            this.deckInfoTableAdapter   = new DeckInfoTableAdapter();
            this.dataSourceTableAdapter = new DataSourceTableAdapter();

            this.adapterManager.DeckInfoTableAdapter   = this.deckInfoTableAdapter;
            this.adapterManager.DataSourceTableAdapter = this.dataSourceTableAdapter;
            this.deckInfoTableAdapter.Fill(dataset.DeckInfo);
            this.dataSourceTableAdapter.Fill(dataset.DataSource);
        }