private void SaveDectionResult(TextRange range)
 {
     if (MainVM.Pages.Count > 0)
     {
         string RtfString = RtfHelper.GetRtfString(range);
         MainVM.DetectionContainerContent = RtfString;
         MainVM.Pages[MainVM.SelectedPageIndex].DetectionResult = RtfString;
         MainVM.Pages[MainVM.SelectedPageIndex].Version++;
         DatabaseHelper.Update(MainVM.Pages[MainVM.SelectedPageIndex]);
     }
 }