Example #1
0
        private void btnDegistir_Click(object sender, EventArgs e)
        {
            frmOgrenciDegistir ogrOgrenciDegistir = new frmOgrenciDegistir();

            ogrOgrenciDegistir.DegisecekOgrBilgileri = this.seciliOgrBilgileri;

            string s = "Change" + seciliOgrBilgileri.Id;

            if (sonIslemDictionary.Keys.Contains(s) == false)
            {
                sonIslemDictionary.Add("Change" + seciliOgrBilgileri.Id, this.seciliOgrBilgileri);
            }

            ogrOgrenciDegistir.ShowDialog();

            this.seciliOgrBilgileri = ogrOgrenciDegistir.DegisecekOgrBilgileri;
            dataGridView1.CurrentRow.Cells[0].Value = seciliOgrBilgileri.Id;
            dataGridView1.CurrentRow.Cells[1].Value = seciliOgrBilgileri.Ad;
            dataGridView1.CurrentRow.Cells[2].Value = seciliOgrBilgileri.Soyad;
            dataGridView1.CurrentRow.Cells[3].Value = seciliOgrBilgileri.DogumYeri;
            dataGridView1.CurrentRow.Cells[4].Value = seciliOgrBilgileri.DogumTarihi;
            dataGridView1.CurrentRow.Cells[5].Value = seciliOgrBilgileri.KursBitisTarihi;
        }
Example #2
0
        private void btnDegistir_Click(object sender, EventArgs e)
        {
            FormDegistir frmDegistir = new FormDegistir();

            frmDegistir.seciliOgrBilgileri = this.seciliOgrBilgileri;

            //sonIslemlerDictionary.Add("Change" + this.seciliOgrBilgileri.Id, this.seciliOgrBilgileri);

            string s = "Change" + this.seciliOgrBilgileri.Id;

            if (sonIslemlerDictionary.Keys.Contains(s) == false)
            {
                sonIslemlerDictionary.Add(s, this.seciliOgrBilgileri);
            }
            frmDegistir.ShowDialog();
            this.seciliOgrBilgileri = frmDegistir.seciliOgrBilgileri;

            dataGridView1.CurrentRow.Cells[0].Value = seciliOgrBilgileri.Id;
            dataGridView1.CurrentRow.Cells[1].Value = seciliOgrBilgileri.Ad;
            dataGridView1.CurrentRow.Cells[2].Value = seciliOgrBilgileri.Soyad;
            dataGridView1.CurrentRow.Cells[3].Value = seciliOgrBilgileri.DogumYeri;
            dataGridView1.CurrentRow.Cells[4].Value = seciliOgrBilgileri.DogumTarih;
            dataGridView1.CurrentRow.Cells[5].Value = seciliOgrBilgileri.KursBitisTarih;
        }