Пример #1
0
        //protected override void refresh()
        //{
        //    dataGridView1.DataSource = rep.List();
        //}
        protected override void btnAdd_Click(object sender, EventArgs e)
        {
            FrmUserOldEdit frm = new FrmUserOldEdit();

            frm.ShowDialog();
            refresh();
        }
Пример #2
0
        protected override void btnEdit_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count == 0)
            {
                MessageBox.Show("Satır seçiniz");
                return;
            }
            UsersOld usr = new UsersOld();

            usr = (UsersOld)dataGridView1.SelectedRows[0].DataBoundItem;
            FrmUserOldEdit frm = new FrmUserOldEdit(usr);

            frm.ShowDialog();
            refresh();
        }