private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (this.Owner is frmBankaHareket)
         {
             frmBankaHareket frm = (frmBankaHareket)this.Owner;
             frm.txtHesapNo.Text = dataGridView1.CurrentRow.Cells[0].Value.ToStringOrEmpty().Trim();
         }
         else if (this.Owner is frmBankaHareketRapor)
         {
             frmBankaHareketRapor frm = (frmBankaHareketRapor)this.Owner;
             frm.txtHesapNo.Text    = dataGridView1.CurrentRow.Cells[clHesapNo.Name].Value.ToStringOrEmpty().Trim();
             frm.txtHesapSahip.Text = dataGridView1.CurrentRow.Cells[clHesapSahibi.Name].Value.ToStringOrEmpty();
             frm.txtBankaAdi.Text   = dataGridView1.CurrentRow.Cells[clBankaAdi.Name].Value.ToStringOrEmpty();
             frm.txtSubeAdi.Text    = dataGridView1.CurrentRow.Cells[clSubeAdi.Name].Value.ToStringOrEmpty();
             frm.txtParaBirimi.Text = dataGridView1.CurrentRow.Cells[clParaBirimi.Name].Value.ToStringOrEmpty();
         }
         else if (this.Owner is frmFatura)
         {
             frmFatura frm = (frmFatura)this.Owner;
             frm.txtBankaHesapNo.Text = dataGridView1.CurrentRow.Cells[0].Value.ToStringOrEmpty().Trim();
         }
         else if (this.Owner is frmDirektSatisKrediKarti)
         {
             frmDirektSatisKrediKarti frm = (frmDirektSatisKrediKarti)this.Owner;
             frm.txtBankaHesapNo.Text = dataGridView1.CurrentRow.Cells[0].Value.ToStringOrEmpty().Trim();
         }
         else if (this.Owner is frmCekDurum)
         {
             frmCekDurum frm = (frmCekDurum)this.Owner;
             frm.txtBankaHesap.Text = dataGridView1.CurrentRow.Cells[clHesapNo.Name].Value.ToStringOrEmpty().Trim();
         }
         else if (this.Owner is frmYeniCek)
         {
             frmYeniCek      frm = (frmYeniCek)this.Owner;
             DataGridViewRow dr  = dataGridView1.CurrentRow;
             frm.txtHesapNo.Text = dr.Cells[clHesapNo.Name].Value.ToStringOrEmpty();
             frm.txtBanka.Text   = dr.Cells[clBankaAdi.Name].Value.ToStringOrEmpty();
             frm.txtSube.Text    = dr.Cells[clSubeAdi.Name].Value.ToStringOrEmpty();
         }
         else if (this.Owner is frmSenetDurum)
         {
             frmSenetDurum frm = (frmSenetDurum)this.Owner;
             frm.txtBankaHesap.Text = dataGridView1.CurrentRow.Cells[clHesapNo.Name].Value.ToStringOrEmpty().Trim();
         }
         this.Close();
     }
     catch (Exception exc)
     {
         LogWrite.Write(exc);
         MessageBox.Show(exc.Message);
     }
 }
        private void tsmGonderilenHavale_Click(object sender, EventArgs e)
        {
            frmBankaHareket frm = new frmBankaHareket(HesapHareketTuru.GonderilenHavale);

            ShowForm(frm, false);
        }
        private void paraCekmeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmBankaHareket frm = new frmBankaHareket(HesapHareketTuru.ParaCekme);

            ShowForm(frm, false);
        }
        private void tsmParaCekme_Click(object sender, EventArgs e)
        {
            frmBankaHareket frm = new frmBankaHareket(HesapHareketTuru.ParaCekme);

            ShowForm(frm, false);
        }
 void Sec()
 {
     try {
         if (this.Owner is frmCari)
         {
             frmCari frmCari = (frmCari)this.Owner;
             frmCari.YeniKayit();
             ListViewItem item = listView1.SelectedItems[0];
             frmCari.txtCariKodu.Text      = item.SubItems[0].Text;
             frmCari.txtCariIsim.Text      = item.SubItems[1].Text;
             frmCari.txtTel.Text           = item.SubItems[2].Text;
             frmCari.txtFax.Text           = item.SubItems[3].Text;
             frmCari.txtCepTel.Text        = item.SubItems[4].Text;
             frmCari.txtCariAdres.Text     = item.SubItems[5].Text;
             frmCari.txtIl.Text            = item.SubItems[6].Text;
             frmCari.txtIlce.Text          = item.SubItems[7].Text;
             frmCari.txtVergiDairesi.Text  = item.SubItems[8].Text;
             frmCari.txtVergiNumarasi.Text = item.SubItems[9].Text;
             frmCari.txtCariEmil.Text      = item.SubItems[10].Text;
             frmCari.txtWebAdres.Text      = item.SubItems[11].Text;
             frmCari.txtYetkiliKisi.Text   = item.SubItems[12].Text;
             frmCari.txtCariGrup1.Text     = item.SubItems[13].Text;
             frmCari.txtCariGrup2.Text     = item.SubItems[14].Text;
             frmCari.txtCariGrup3.Text     = item.SubItems[15].Text;
             frmCari.txtCariGrup4.Text     = item.SubItems[16].Text;
             if (item.SubItems[17].Text.Contains("AS"))
             {
                 frmCari.rbAliciSatici.Checked = true;
             }
             else if (item.SubItems[17].Text.Contains("S"))
             {
                 frmCari.rbSatici.Checked = true;
             }
             else
             {
                 frmCari.rbAlici.Checked = true;
             }
             frmCari.cmbAlisFiyatKod.Text  = item.SubItems[18].Text;
             frmCari.cmbSatisFiyatKod.Text = item.SubItems[19].Text;
             frmCari.txtCariKodu.ReadOnly  = true;
             frmCari.txtCariIsim.Focus();
             Cari cari = mngCari.GetById(frmCari.txtCariKodu.Text, false);
             frmCari.chkSubelerdeOrtak.Checked = cari.SubelerdeOrtak.HasValue ? cari.SubelerdeOrtak.Value : false;
         }
         else if (this.Owner is frmFatura)
         {
             frmFatura    frm  = (frmFatura)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCari.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmSiparis)
         {
             frmSiparis   frm  = (frmSiparis)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCari.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmBankaHareket)
         {
             frmBankaHareket frm  = (frmBankaHareket)this.Owner;
             ListViewItem    item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmDirekSatisVeresiye)
         {
             frmDirekSatisVeresiye frm  = (frmDirekSatisVeresiye)this.Owner;
             ListViewItem          item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmYeniCek)
         {
             frmYeniCek   frm  = (frmYeniCek)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmCekDurum)
         {
             frmCekDurum  frm  = (frmCekDurum)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCari.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmSenetDurum)
         {
             frmSenetDurum frm  = (frmSenetDurum)this.Owner;
             ListViewItem  item = listView1.SelectedItems[0];
             frm.txtCari.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmKasaKayitlari)
         {
             frmKasaKayitlari frm  = (frmKasaKayitlari)this.Owner;
             ListViewItem     item = listView1.SelectedItems[0];
             frm.txtCariKod.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmCariGenelBorcAlacakDokumu)
         {
             frmCariGenelBorcAlacakDokumu frm = (frmCariGenelBorcAlacakDokumu)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmCariHareketDokumu)
         {
             frmCariHareketDokumu frm  = (frmCariHareketDokumu)this.Owner;
             ListViewItem         item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmFaturaRapor)
         {
             frmFaturaRapor frm  = (frmFaturaRapor)this.Owner;
             ListViewItem   item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmSiparisRapor)
         {
             frmSiparisRapor frm  = (frmSiparisRapor)this.Owner;
             ListViewItem    item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmCekRapor)
         {
             frmCekRapor  frm  = (frmCekRapor)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmSenetRapor)
         {
             frmSenetRapor frm  = (frmSenetRapor)this.Owner;
             ListViewItem  item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmYeniSenet)
         {
             frmYeniSenet frm  = (frmYeniSenet)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmHizliCari)
         {
             frmHizliCari frm  = (frmHizliCari)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text      = item.SubItems[0].Text;
             frm.txtCariIsim.Text      = item.SubItems[1].Text;
             frm.txtTel.Text           = item.SubItems[2].Text;
             frm.txtCepTel.Text        = item.SubItems[4].Text;
             frm.txtCariAdres.Text     = item.SubItems[5].Text;
             frm.txtVergiDairesi.Text  = item.SubItems[8].Text;
             frm.txtVergiNumarasi.Text = item.SubItems[9].Text;
         }
         this.Close();
     } catch {
     }
 }