private void btnAdd_Click(object sender, EventArgs e)
        {
            AddProductAttribute frmProductAttribute = new AddProductAttribute();

            frmProductAttribute.CallFromUserControll = this;
            frmProductAttribute.ShowDialog();
        }
        private void dgvProductAttributeList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            AddProductAttribute frmAddProductType = new AddProductAttribute();
            DataGridViewRow currentRow = dgvProductAttributeList.Rows[e.RowIndex];

            int id = ObjectHelper.GetValueFromAnonymousType<int>(currentRow.DataBoundItem, "Id");
            frmAddProductType.loadDataForEditProductAttribute(id);

            frmAddProductType.CallFromUserControll = this;
            frmAddProductType.ShowDialog();
        }
        private void dgvProductAttributeList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            AddProductAttribute frmAddProductType = new AddProductAttribute();
            DataGridViewRow     currentRow        = dgvProductAttributeList.Rows[e.RowIndex];

            int id = ObjectHelper.GetValueFromAnonymousType <int>(currentRow.DataBoundItem, "Id");

            frmAddProductType.loadDataForEditProductAttribute(id);

            frmAddProductType.CallFromUserControll = this;
            frmAddProductType.ShowDialog();
        }
 private void btnAdd_Click(object sender, EventArgs e)
 {
     AddProductAttribute frmProductAttribute = new AddProductAttribute();
     frmProductAttribute.CallFromUserControll = this;
     frmProductAttribute.ShowDialog();
 }