<NME> ContentWindowDataBlockEditor.xaml.cs
<BEF> ﻿using System;
using System.IO;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Threading;
using System.Xml;
using AvalonDock;
using DotNetSiemensPLCToolBoxLibrary.DataTypes.Blocks.Step7V5;
using ICSharpCode.AvalonEdit.Folding;
using ICSharpCode.AvalonEdit.Highlighting;
using ICSharpCode.AvalonEdit.Highlighting;
using WPFToolboxForSiemensPLCs.AvalonEdit;

namespace WPFToolboxForSiemensPLCs.DockableWindows
{
    public partial class ContentWindowDataBlockEditor : DocumentContent
    {
        private Block myBlock;
        private string myBlockString;

        public ContentWindowDataBlockEditor(object myBlock)
        {
            InitializeComponent();
                PLCDataBlock blk = (PLCDataBlock) myBlock;
                dtaViewControl.DataBlockRows = blk.Structure;
            }
        }      
    }
}
                S5DataBlock blk = (S5DataBlock)myBlock;
                dtaViewControl.DataBlockRows = ((S7DataRow)blk.Structure);
            }
        }

        private void DocumentContent_IsActiveDocumentChanged(object sender, EventArgs e)
        {
            if (this.IsActiveDocument)
                App.clientForm.PrintData = myBlockString;
            else
                App.clientForm.PrintData = null;
        }      
    }
}

<MSG> Update to Step5Project Files Reading


<DFF> @@ -7,6 +7,7 @@ using System.Windows.Media;
 using System.Windows.Threading;
 using System.Xml;
 using AvalonDock;
+using DotNetSiemensPLCToolBoxLibrary.DataTypes.Blocks.Step5;
 using DotNetSiemensPLCToolBoxLibrary.DataTypes.Blocks.Step7V5;
 using ICSharpCode.AvalonEdit.Folding;
 using ICSharpCode.AvalonEdit.Highlighting;
@@ -26,6 +27,11 @@ namespace WPFToolboxForSiemensPLCs.DockableWindows
                 PLCDataBlock blk = (PLCDataBlock) myBlock;
                 dtaViewControl.DataBlockRows = blk.Structure;
             }
+            else if (myBlock is S5DataBlock)
+            {
+                S5DataBlock blk = (S5DataBlock)myBlock;
+                dtaViewControl.DataBlockRows = blk.Structure;
+            }
         }      
     }
 }

Update to Step5Project Files Reading