Esempio n. 1
0
        private void buttonProductDocumentationEdit_Click(object sender, EventArgs e)
        {
            Log("buttonProductDocumentationEdit_Click");

            try {
                var newMDIChild = new CrudeProductDocumentationEdit();
                newMDIChild.MdiParent = this.MdiParent;
                CheckForm(newMDIChild);
                newMDIChild.ShowAsEdit((System.Guid)dataGridViewProductDocumentation.CurrentRow.Cells["ProductDocumentationId"].Value);
            } catch (Exception ex) {
                Error("buttonProductDocumentationEdit_Click", ex);
            }
        }
Esempio n. 2
0
 // shows a form for adding more rows
 // links:
 //  docLink: http://sql2x.org/documentationLink/499f894b-7c95-446b-be0a-57fd47b768e3
 private void buttonCrudeProductDocumentationAdd_Click(object sender, EventArgs e)
 {
     try {
         var editForm = new CrudeProductDocumentationEdit();
         editForm.MdiParent = this.MdiParent;
         editForm.ShowAsAddByRules(_userId);
     } catch (Exception ex) {
         if (ex == null)
         {
         }
         else
         {
             System.Diagnostics.Debugger.Break();
         }
     }
 }
Esempio n. 3
0
 // 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 buttonCrudeProductDocumentationEdit_Click(object sender, EventArgs e)
 {
     try {
         var editForm = new CrudeProductDocumentationEdit();
         editForm.MdiParent = this.MdiParent;
         editForm.ShowAsEdit((System.Guid)dataGridViewCrudeProductDocumentation.CurrentRow.Cells["ProductDocumentationId"].Value);
     } catch (Exception ex) {
         if (ex == null)
         {
         }
         else
         {
             System.Diagnostics.Debugger.Break();
         }
     }
 }
Esempio n. 4
0
        private void buttonProductDocumentationAdd_Click(object sender, EventArgs e)
        {
            Log("buttonProductDocumentationAdd_Click");

            try {
                var newMDIChild = new CrudeProductDocumentationEdit();
                newMDIChild.MdiParent = this.MdiParent;
                CheckForm(newMDIChild);
                newMDIChild.ShowAsAdd(_productContract.Product.ProductId,
                                      string.Empty,
                                      string.Empty,
                                      _userId
                                      );
            } catch (Exception ex) {
                Error("buttonProductDocumentationAdd_Click", ex);
            }
        }