private void ButtonCorrectBookMark_Click(object sender, RoutedEventArgs e)
 {
     if (selectedBookMark != null)
     {
         BookMarkProperties prop = new BookMarkProperties(selectedBookMark);
         if (prop.ShowDialog() == true)
         {
             TextBlockBookMarkHeader.Text = selectedBookMark.Header;
             TextBlockBookMarkText.Text   = selectedBookMark.Text;
             UpdateBookmarks();
         }
     }
 }
        private void MenuItemAddBookMark_Click(object sender, RoutedEventArgs e)
        {
            if (ScaleManager.EndTime == 0)
            {
                return;
            }
            BookMark           bm  = new BookMark("<header>", "<text>", Variable.FullName, CursorViewer.Time);
            BookMarkProperties bmp = new BookMarkProperties(bm);

            if (bmp.ShowDialog() == true)
            {
                Core.BookMarks.Add(bm);
            }
        }