Exemple #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            Duzeltme frm = new Duzeltme();

            frm.yeni = true;
            frm.r    = dataSet1.vatandas.NewvatandasRow();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                dataSet1.vatandas.AddvatandasRow(frm.r);
                vatandasTableAdapter.Update(frm.r);
            }
        }
Exemple #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            Duzeltme frm = new Duzeltme();

            frm.yeni = false;
            int id = (int)dataGridView1.SelectedRows[0].Cells[0].Value;

            frm.r = dataSet1.vatandas.FindByvatandas_id(id);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                vatandasTableAdapter.Update(frm.r);
            }
        }