private void IL_ADI_ArsExit(object sender, EventArgs e) { if (IL_ADI.Text != "") { if (IL_ADI.ExitError) { ILCE_ADI.ArEnable = false; ILCE_ADI.Text = ""; btnILCE_ADIGuide.SQLText = ""; } else { bool focusCheck = !ILCE_ADI.ArEnable; ILCE_ADI.ArEnable = true; btnILCE_ADIGuide.SQLText = "SELECT ILCE_KODU, ILCE_ADI FROM [TBLILCE] WHERE /*WS*/IL_KODU = (SELECT IL_KODU FROM TBLIL WHERE IL_ADI = '" + IL_ADI.Text + "')/*WE*/"; if (!onCariExit && focusCheck) { ILCE_ADI.Focus(); } onCariExit = false; } } else { bool focusCheck = ILCE_ADI.ArEnable; ILCE_ADI.ArEnable = false; btnILCE_ADIGuide.SQLText = ""; if (!onCariExit && focusCheck) { VERGI_DAIRESI.Focus(); } } }
private void IL_ILCE_FARKLI_CheckedChanged(object sender, EventArgs e) { if (IL_ILCE_FARKLI.Checked) { ADRES_IL.ArEnable = true; ADRES_ILCE.ArEnable = true; BtnAdresIl.Enabled = true; BtnAdresIlce.Enabled = true; } else { ADRES_IL.Text = IL_ADI.GetDataStr(); ADRES_ILCE.Text = ILCE_ADI.GetDataStr(); ADRES_IL.ArEnable = false; ADRES_ILCE.ArEnable = false; BtnAdresIl.Enabled = false; BtnAdresIlce.Enabled = false; } }
private void IL_ADI_ArsExit(object sender, EventArgs e) { if (IL_ADI.Text != "") { if (IL_ADI.ExitError) { ILCE_ADI.ArEnable = false; ILCE_ADI.Text = ""; ILCE_ADI.controlButton.SQLText = ""; } else { ILCE_ADI.ArEnable = true; ILCE_ADI.controlButton.SQLText = "SELECT ILCE_KODU, ILCE_ADI FROM [TBLILCE] WHERE /*WS*/IL_KODU = (SELECT IL_KODU FROM TBLIL WHERE IL_ADI = '" + IL_ADI.Text + "')/*WE*/"; ILCE_ADI.Focus(); } } else { ILCE_ADI.ArEnable = false; ILCE_ADI.controlButton.SQLText = ""; ADRES.Focus(); } }