Exemplo n.º 1
0
 protected void SaveChangesAndTransfer()
 {
     //TODO: logging
     try
     {
         this.Cursor = Cursors.WaitCursor;
         PopulateArticleNumber();
         if (HasArticleNumber())
         {
             XElement x    = _wordUtils.GetWordDocTextWithStyles(_wordApp);
             string   text = ParseForInlineReferences(x.ToString());
             _scServer.SaveArticleText(GetArticleNumber(), text, GetArticleDetails());
             _taxonomyTabControllers.ForEach(t => t.HasChanged = false);
             tabControl1.Refresh();
             MessageBox.Show("Article details saved and transferred!", "Elsevier", MessageBoxButtons.OK, MessageBoxIcon.Information);
             SetCheckedOutStatus();
         }
     }
     catch (WebException ex)
     {
         Globals.SitecoreAddin.LogException("Error in article details when transferring article details", ex);
         AlertConnectionFailed();
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }