public LayoutWindow(SupplementLayout layout, LayoutSide layoutSide)
        {
            instance           = this;
            m_SupplementLayout = layout;
            LayoutProperties   = layout.GetProperties(layoutSide);

            CurrentLayout     = LayoutProperties.Name;
            CurrentLayoutSide = layoutSide;

            var m_piSize = MainWindow.CentimeterToPixel(LayoutProperties.Size.X, LayoutProperties.Size.Y);

            //m_LayoutLoader = new LayoutLoader();

            InitializeComponent();

            Canvas.SetLeft(ImageBackground, LayoutProperties.Offset.X * MainWindow.DpiX / 2.54d / 100d);
            Canvas.SetTop(ImageBackground, LayoutProperties.Offset.Y * MainWindow.DpiY / 2.54d / 100d);

            SetWindowSize((int)m_piSize.X, (int)m_piSize.Y, WindowStyle != System.Windows.WindowStyle.None);

            Task.Factory.StartNew(new Action(() =>
            {
                Dispatcher.Invoke(new MakeLayoutLoad(LoadLayout), new object[] { LayoutProperties });
            }));
        }
        public LayoutWindow(Point point)
        {
            instance = this;

            var m_piSize = MainWindow.CentimeterToPixel(point.X, point.Y);

            InitializeComponent();
            SetWindowSize((int)m_piSize.X, (int)m_piSize.Y);
        }
 public LayoutWindow()
 {
     instance = this;
     InitializeComponent();
 }