예제 #1
0
        private void DoldurKomple()
        {
            PRG.DoldurTahsil(ref cboxTahsil);
            PRG.DoldurUnvan(ref cboxUnvan);
            PRG.DoldurIl(ref cboxIl);

            //3 kere daha aynı sql sorgusunu yapmasın diye cboxilden çekiyoruz verileri
            PRG.DoldurIlKopyala(ref cboxEvIl, cboxIl);
            PRG.DoldurIlKopyala(ref cboxIsIl, cboxIl);
            PRG.DoldurIlKopyala(ref cboxNufusIl, cboxIl);

            PRG.DoldurUyelikTipi(ref cboxUyelikTipi);
            PRG.DoldurKanGrubu(ref cboxNufusKan);
        }
예제 #2
0
        private void checkUnvan_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                if (checkUnvan.Checked)
                {
                    PRG.DoldurUnvan(ref cboxUnvan);
                }

                else
                {
                    cboxUnvan.Enabled       = false;
                    cboxUnvan.SelectedIndex = -1;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }