Exemple #1
0
        public void SetConfiguration(MapDocumentControlWindowConfiguration config)
        {
            MapDocumentContainer.Table.Configuration = config.Configuration;
            MapDocumentContainer.Table.RowSizes      = config.RowSizes;
            MapDocumentContainer.Table.ColumnSizes   = config.ColumnSizes;

            Location    = config.Size.Location;
            Size        = config.Size.Size;
            WindowState = config.Maximised ? FormWindowState.Maximized : FormWindowState.Normal;
        }
Exemple #2
0
        public ViewportWindow(MapDocumentControlWindowConfiguration config)
        {
            InitializeComponent();

            MapDocumentContainer = new MapDocumentContainer(config.WindowID)
            {
                Dock = DockStyle.Fill
            };
            Controls.Add(MapDocumentContainer);

            SetConfiguration(config);
        }