private void UpdateLayoutProperties()
        {
            if (LayoutProperties != null)
            {
                using (new WaitCursor())
                {
                    var mediaOffset = LayoutProperties.OffsetInPixel;
                    LayoutProperties.m_CaptionInfo   = new List <CaptionInfo>();
                    LayoutProperties.m_Table         = new List <TableInfo>();
                    LayoutProperties.m_GuideLineInfo = new List <GuideLineInfo>();
                    LayoutProperties.m_CaptionInfo.AddRange(CaptionInfo.Convert(myCanvas.Children.OfType <TextSpan>().ToArray(), mediaOffset));
                    LayoutProperties.m_Table.AddRange(TableInfo.Convert(myCanvas.Children.OfType <Table>().ToArray(), mediaOffset));
                    LayoutProperties.m_GuideLineInfo.AddRange(GuideLineInfo.Convert(myCanvas.Children.OfType <GuideLine>().ToArray(), mediaOffset));
                    LayoutProperties.m_ZSumbolInfo.AddRange(ZSumbolInfo.Convert(myCanvas.Children.OfType <ZSumbol>().ToArray(), mediaOffset));

                    m_SupplementLayout.Update();
                }
            }
        }
        public void SaveLayout()
        {
            using (new WaitCursor())
            {
                var mediaOffset = LayoutProperties.OffsetInPixel;
                //LayoutProperties.Name = CurrentLayoutName;


                LayoutProperties.m_CaptionInfo   = new List <CaptionInfo>();
                LayoutProperties.m_Table         = new List <TableInfo>();
                LayoutProperties.m_GuideLineInfo = new List <GuideLineInfo>();
                LayoutProperties.m_ZSumbolInfo   = new List <ZSumbolInfo>();
                var count = myCanvas.Children.OfType <TextSpan>().ToArray();
                LayoutProperties.m_CaptionInfo.AddRange(CaptionInfo.Convert(myCanvas.Children.OfType <TextSpan>().ToArray(), mediaOffset));
                LayoutProperties.m_Table.AddRange(TableInfo.Convert(myCanvas.Children.OfType <Table>().ToArray(), mediaOffset));
                LayoutProperties.m_GuideLineInfo.AddRange(GuideLineInfo.Convert(myCanvas.Children.OfType <GuideLine>().ToArray(), mediaOffset));
                LayoutProperties.m_ZSumbolInfo.AddRange(ZSumbolInfo.Convert(myCanvas.Children.OfType <ZSumbol>().ToArray(), mediaOffset));

                m_SupplementLayout.Save();
            }
        }