示例#1
0
        private void PanelsClick(object sender, RoutedEventArgs e)
        {
            PanelsLayoutWindow layout = new PanelsLayoutWindow(myHull);

            layout.Width  = 600;
            layout.Height = 400;

            layout.Show();
        }
            public SerializablePanelsLayoutWindow(PanelsLayoutWindow window)
            {
                m_panelWidth          = window.m_panelWidth;
                m_panelHeight         = window.m_panelHeight;
                m_NumHorizontalPanels = window.m_NumHorizontalPanels;
                m_NumVerticalPanels   = window.m_NumVerticalPanels;
                m_overallScale        = window.m_overallScale;

                scale         = window.m_scale;
                panels        = new List <Panel.SerializablePanel>();
                displayPanels = new List <PanelDisplay.SerializablePanelDisplay>();

                foreach (Panel p in window.m_panels)
                {
                    panels.Add(new Panel.SerializablePanel(p));
                }

                foreach (PanelDisplay disp in window.m_displayPanels)
                {
                    displayPanels.Add(new PanelDisplay.SerializablePanelDisplay(disp));
                }
            }