Пример #1
0
        public ApplicationBridge(MenuStrip menuStrip, ToolStripContainer toolStripContainer, MapPanel mapPanel, MapTreeView mapTreeView) : base(false)
        {
            m_commandHistory = CommandHistory.Instance;

            m_menuStripBridge = new MenuStripBridge(menuStrip);

            m_toolStripContainer = toolStripContainer;
            m_toolBars           = new List <ToolBarBridge>();
            PopulateToolBars(toolStripContainer.TopToolStripPanel, mapPanel);
            PopulateToolBars(toolStripContainer.BottomToolStripPanel, mapPanel);
            PopulateToolBars(toolStripContainer.LeftToolStripPanel, mapPanel);
            PopulateToolBars(toolStripContainer.RightToolStripPanel, mapPanel);

            m_editorBridge = new EditorBridge(mapPanel, mapTreeView);
        }
Пример #2
0
        public ApplicationBridge(MenuStrip menuStrip,
            ToolStripContainer toolStripContainer, MapPanel mapPanel)
            : base(false)
        {
            m_commandHistory = CommandHistory.Instance;

            m_menuStripBridge = new MenuStripBridge(menuStrip);

            m_toolStripContainer = toolStripContainer;
            m_toolBars = new List<ToolBarBridge>();
            PopulateToolBars(toolStripContainer.TopToolStripPanel);
            PopulateToolBars(toolStripContainer.BottomToolStripPanel);
            PopulateToolBars(toolStripContainer.LeftToolStripPanel);
            PopulateToolBars(toolStripContainer.RightToolStripPanel);

            m_editorBridge = new EditorBridge(mapPanel);
        }