예제 #1
0
        private void GetLayoutSetup()
        {
            //Get the layout setup
            PanelLayoutSetup setup = new PanelLayoutSetup();

            setup.Owner = this;

            bool?result = setup.ShowDialog();

            if (result == true)
            {
                LayoutSetupData parameters = (LayoutSetupData)Application.Current.FindResource("LayoutSetup");

                if (parameters != null)
                {
                    LayoutControl.Layout.SheetWidth   = parameters.sheetWidth;
                    LayoutControl.Layout.SheetHeight  = parameters.sheetHeight;
                    LayoutControl.Layout.SheetsWide   = parameters.numSheetsHorizontal;
                    LayoutControl.Layout.SheetsHigh   = parameters.numSheetsVertical;
                    LayoutControl.Layout.WindowWidth  = Width;
                    LayoutControl.Layout.WindowHeight = Height;
                }
            }
        }
예제 #2
0
 //**************************************************
 // PanelLayout implementation
 public PanelLayout()
 {
     m_panelSetup = new PanelLayoutSetup();
 }