Пример #1
0
        /// <summary>
        /// Method to use 2 different adapters, general and features adapter, as features are in combobox.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Form1_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'comboData.NAME_PLACES' table. You can move, or remove it, as needed.
            this.nAME_PLACESTableAdapter.Fill(this.comboData.NAME_PLACES);
            // TODO: This line of code loads data into the 'comboData.FEATURE_TYPES' table. You can move, or remove it, as needed.
            this.fEATURE_TYPESTableAdapter.Fill(this.comboData.FEATURE_TYPES);

            this.AcceptButton = this.btnSearch;
            txtSearch.Focus();
            ConnectionClass.Initialize();
        }