Ejemplo n.º 1
0
        private void buttonProductAttributeEdit_Click(object sender, EventArgs e)
        {
            Log("buttonProductAttributeEdit_Click");

            try {
                var newMDIChild = new CrudeProductAttributeEdit();
                newMDIChild.MdiParent = this.MdiParent;
                CheckForm(newMDIChild);
                newMDIChild.ShowAsEdit((System.Guid)dataGridViewProductAttribute.CurrentRow.Cells["ProductAttributeId"].Value);
            } catch (Exception ex) {
                Error("buttonProductAttributeEdit_Click", ex);
            }
        }
 // shows the detailed version of the selected grid row, in edit modus
 // links:
 //  docLink: http://sql2x.org/documentationLink/c778f8fe-1b09-4755-891f-f9d3126d1b85
 private void buttonCrudeProductAttributeEdit_Click(object sender, EventArgs e)
 {
     try {
         var editForm = new CrudeProductAttributeEdit();
         editForm.MdiParent = this.MdiParent;
         editForm.ShowAsEdit((System.Guid)dataGridViewCrudeProductAttribute.CurrentRow.Cells["ProductAttributeId"].Value);
     } catch (Exception ex) {
         if (ex == null)
         {
         }
         else
         {
             System.Diagnostics.Debugger.Break();
         }
     }
 }