示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows[0].Index + 1 == dataGridView1.Rows.Count)
            {
                return;
            }
            DataRow r = dt_kayit.Rows[dataGridView1.SelectedRows[0].Index];
            Kayit   k = new Kayit()
            {
                ID           = Convert.ToInt32(r["ID"].ToString()),
                Arac         = r["Arac"].ToString(),
                TahsilTuru   = r["TahsilTuru"].ToString(),
                TahsilTarihi = Convert.ToDateTime(r["TahsilTarihi"].ToString()),
                Tutar        = Convert.ToDouble(r["Tutar"].ToString()),
                Aciklama     = r["Aciklama"].ToString(),
                Muhatap      = r["Muhatap"].ToString(),
                Durum        = Convert.ToBoolean(r["Durum"].ToString()),
                SilMi        = Convert.ToBoolean(r["Sil"].ToString())
            };
            KayitForm kf = new KayitForm();

            kf.temp         = k;
            kf.dt_Arac      = dt_Arac;
            kf.list_muhatap = dt_muhatap;
            kf.ShowDialog();
            VerileriYukle();
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            KayitForm kf = new KayitForm();

            kf.temp         = null;
            kf.dt_Arac      = dt_Arac;
            kf.list_muhatap = dt_muhatap;
            kf.ShowDialog();
            VerileriYukle();
        }