Ejemplo n.º 1
0
 private void saverBGW_DoWork(object sender, DoWorkEventArgs e)
 {
     if (currentDocument.Id < 0)
     {
         if (docsManager.Insert(currentDocument) < 0)
         {
             e.Result = false;
         }
         else
         {
             e.Result = true;
         }
     }
     else
     {
         e.Result = docsManager.Update(currentDocument);
     }
 }