Example #1
0
 private void SearchDoc()
 {
     if (dgvOPS.CurrentRow == null)
     {
         return;
     }
     try
     {
         var rv = dgvOPS.CurrentRow.DataBoundItem as DataRowView;
         int id = (int)rv["docid"];
         if (MyData.DataSetKlons.OPSd.FindByid(id) == null)
         {
             FillDocs();
         }
         var f = MyMainForm.ShowFormDocs();
         if (f == null)
         {
             return;
         }
         f.SearchId(id);
     }
     catch (ConstraintException)
     {
         return;
     }
 }
Example #2
0
 private void tsbFilterDocs_Click(object sender, EventArgs e)
 {
     try
     {
         FillDocs();
     }
     catch (ConstraintException ex)
     {
         DetailedConstraintException ex1 =
             new DetailedConstraintException(
                 ex.Message,
                 MyData.DataSetKlons.OPS);
         Form_Error.ShowException(MyMainForm, ex1);
     }
     MyMainForm.ShowFormDocs();
 }
Example #3
0
 private void tsbDocs_Click(object sender, EventArgs e)
 {
     MyMainForm.ShowFormDocs();
 }