Example #1
0
        private void button9_Click(object sender, EventArgs e)
        {
            DatasetSmartCityTableAdapters.TypeTableAdapter myadp = new global::SmartCity.DatasetSmartCityTableAdapters.TypeTableAdapter();
            myadp.Update(smartCity1);

            repositoryItemComboBox1.Items.Clear();
            foreach (DatasetSmartCity.TypeRow item in smartCity1.Type.Rows)
            {
                repositoryItemComboBox1.Items.Add(item.Name);
            }
        }
 private void button9_Click(object sender, EventArgs e)
 {
     DatasetSmartCityTableAdapters.TypeTableAdapter myadp = new global::SmartCity.DatasetSmartCityTableAdapters.TypeTableAdapter();
     myadp.Update(smartCity1);
 }