Beispiel #1
0
 public void SyncDocumentWithOnenote()
 {
     if (OnenoteUtils.WSearchIsOn())
     {
         try
         {
             Utils.SyncActiveDocumentWithOnenote(ref _MindManager);
         }
         catch (Exception ex)
         {
             throw new OneMapException("SyncDocumentWithOneNote-> couldn't synchronize document with onenote", ex);
         }
         //  _MindManager.ActiveDocument.Save();
     }
     else
     {
         MessageBox.Show("WSearch is not on!!!!");
     }
 }
Beispiel #2
0
 private void SyncTopicLinksWithOnnote()
 {
     if (OnenoteUtils.WSearchIsOn())
     {
         var      seltopic = _MindManager.ActiveDocument.Selection.PrimaryTopic;
         SyncForm syncForm = new SyncForm();
         try
         {
             Utils.SyncTopicWithOnenote(seltopic, ref syncForm);
         }
         catch (Exception ex)
         {
             throw new OneMapException("SyncDocumentWithOneNote-> couldn't synchronize document with onenote", ex);
         }
         finally
         {
             syncForm.Close();
         }
     }
     else
     {
         MessageBox.Show("WSearch is not on!!!!");
     }
 }