Exemple #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (gvProductData.SelectedRows.Count == 0)
            {
                "Please Select Prodct You Want To Edit.".ShowError();
                return;
            }

            int     id      = gvProductData.SelectedRows[0].Cells[gvcId.Name].GetString().ToInt();
            Product proData = ProductImplementation.FindById(id);

            frmProduct_New form = new frmProduct_New(proData);

            form.ShowDialog();
        }
Exemple #2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmProduct_New form = new frmProduct_New();

            form.ShowDialog();
        }