Example #1
0
        protected override void button1_Click(object sender, EventArgs e)
        {
            FrmProductEdit frm = new FrmProductEdit();

            frm.ShowDialog();
            refresh();
        }
Example #2
0
        protected override void button2_Click(object sender, EventArgs e)
        {
            Products pp = (Products)dataGridView1.SelectedRows[0].DataBoundItem;

            FrmProductEdit frm = new FrmProductEdit(pp);

            frm.ShowDialog();
            refresh();
        }