Exemplo n.º 1
0
        public DesignerControl(string AScript)
        {
            FServer = new ServerSchema(AScript);

            FDesignStatusPanel          = new StatusBarPanel();
            FDesignStatusPanel.AutoSize = StatusBarPanelAutoSize.Spring;

            FDesignSelectionPanel           = new StatusBarPanel();
            FDesignSelectionPanel.Alignment = HorizontalAlignment.Right;
            FDesignSelectionPanel.AutoSize  = StatusBarPanelAutoSize.Contents;

            FDesignPositionPanel           = new StatusBarPanel();
            FDesignPositionPanel.Alignment = HorizontalAlignment.Right;
            FDesignPositionPanel.AutoSize  = StatusBarPanelAutoSize.Contents;

            FDesignStatusBar            = new StatusBar();
            FDesignStatusBar.ShowPanels = true;
            FDesignStatusBar.SizingGrip = false;
            FDesignStatusBar.Panels.AddRange(new StatusBarPanel[] { FDesignStatusPanel, FDesignSelectionPanel, FDesignPositionPanel });

            SuspendLayout();

            Dock = DockStyle.Fill;
            Controls.Add(FDesignStatusBar);

            // Prepare designer
            Push(FDatabaseSurface = new DatabaseSurface(FServer.GetCatalog(), this));

            ResumeLayout(false);
        }
Exemplo n.º 2
0
 public CatalogSchema(ServerSchema AServer)
 {
     FServer = AServer;
 }