private void showBlock(object myBlock, int netzwerknr, int zeile)
        {
            this.netzwerknr = netzwerknr;
            this.zeile = zeile;

            this.myBlock = (Block)myBlock;
            myBlockString = this.myBlock.ToString();

            if (myBlock is S7FunctionBlock)
            {
                if (((S7FunctionBlock)myBlock).Parameter != null)
                    myTree.DataContext = ((S7FunctionBlock)myBlock).Parameter.Children;

                myLst.ItemsSource = ((S7FunctionBlock)myBlock).Networks;
            }
            else
            {
                mainGrid.RowDefinitions[0].Height = new GridLength(0, GridUnitType.Star);
                myLst.ItemsSource = ((S5FunctionBlock)myBlock).Networks;
            }
            this.DataContext = this;

            if (netzwerknr > 0)
            {
                myLst.ItemContainerGenerator.StatusChanged += new EventHandler(ItemContainerGenerator_StatusChanged);
                
            }
        }
        public ContentWindowDataBlockEditor(object myBlock)
        {
            InitializeComponent();

            this.myBlock = (Block)myBlock;
            myBlockString = this.myBlock.ToString();

            if (myBlock is S7DataBlock)
            {
                S7DataBlock blk = (S7DataBlock) myBlock;
                dtaViewControl.DataBlockRows = blk.Structure;
            }
            else if (myBlock is S5DataBlock)
            {
                S5DataBlock blk = (S5DataBlock)myBlock;
                dtaViewControl.DataBlockRows = blk.Structure;
            }
        }
        public void UploadBlock(Block myBlk)
        {

        }