예제 #1
0
        protected override void button1_Click(object sender, EventArgs e)
        {
            FrmUserEdit frm = new FrmUserEdit();

            frm.ShowDialog();
            refresh();
        }
예제 #2
0
        protected override void button2_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count == 0)
            {
                MessageBox.Show("Select Row To Edit");
                return;
            }

            Users       entity = (Users)dataGridView1.SelectedRows[0].DataBoundItem;
            FrmUserEdit frm    = new FrmUserEdit(entity);

            frm.ShowDialog();
            refresh();
        }