Example #1
0
 private void tabControl2_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (tabControl2.SelectedIndex == 0)//наименование
     {
         WorkWithDB.NaimDocVivod();
         SprNameDocGrid.DataSource = WorkWithDB.VivodNaimDocVivod;
     }
     if (tabControl2.SelectedIndex == 1)//префиксы
     {
         WorkWithDB.SprPrefVivod1();
         SprPrefDocGrid.DataSource = WorkWithDB.VivodPrefDocVivod1;
     }
     if (tabControl2.SelectedIndex == 2)
     {
         WorkWithDB.DistrictVivod();
         DistrictGrid.DataSource = WorkWithDB.VivodDistrict;
         WorkWithDB.CityVivod();
         CityGrid.DataSource = WorkWithDB.VivodCity;
     }
 }