Exemplo n.º 1
0
 void yeniKayit()
 {
     if (_cariKaydet)
     {
         frmCari frm = new frmCari();
         frm.Owner = this;
         frm.ShowDialog();
         LoadCari();
     }
 }
Exemplo n.º 2
0
 private void txtCari_KeyUp(object sender, KeyEventArgs e)
 {
     if (!string.IsNullOrEmpty(txtCari.Text) && e.KeyCode == Keys.Tab)
     {
         try {
             Cari cari = mngCari.GetById(txtCari.Text, false);
             if (cari == null)
             {
                 frmCari frm = new frmCari();
                 frm.Owner            = this;
                 frm.txtCariKodu.Text = txtCari.Text;
                 frm.txtCariKodu.Focus();
                 frm.ShowDialog();
             }
             else
             {
                 dateTarih.Focus();
             }
         } catch (Exception exc) {
             MessageBox.Show(exc.Message);
             LogWrite.Write(exc);
         }
     }
 }