Example #1
0
        private void btnAddProductGroup_Click(object sender, EventArgs e)
        {
            using (frmAddEditProductGroup formAddEditProductGroup = new frmAddEditProductGroup()) {
                formAddEditProductGroup.ShowDialog();

                StartUp();
            }
        }
Example #2
0
        private void dgvProductGroup_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int index        = dgvProductGroup.SelectedCells[0].RowIndex;
            var productGroup = dgvProductGroup.Rows[index].Tag as ProductGroupModel;

            if (productGroup != null)
            {
                using (frmAddEditProductGroup formEditProductGroup = new frmAddEditProductGroup()
                {
                    ProductGroupSelected = productGroup
                }) {
                    formEditProductGroup.ShowDialog();

                    StartUp();
                }
            }
        }