コード例 #1
0
        public CAMenuManager(XmlSettings aSettings, MenuStrip aMenu, TabStripManager aTabStripManager)
        {
            iSettings        = aSettings;
            iMenuBar         = aMenu;
            iTabStripManager = aTabStripManager;

            // Listen to tab changes
            iTabStripManager.TabStrip.SelectedTabChanged += new TabStrip.TabHandler(TabStrip_SelectedTabChanged);
        }
コード例 #2
0
        public CAGraphicalUI(CAEngine aEngine)
        {
            iEngine = aEngine;

            // Must call this to ensure that UI components are created before
            // we load the crash analyser plugins.
            InitializeComponent();

            // Create tab manager to oversee all tab items
            iTabManager          = new TabStripManager(iTabStrip, this);
            iTabManager.AutoHide = true;

            // Listen for tab change events
            iMenuManager = new CAMenuManager(iEngine.Settings, iMenu, iTabManager);

            // Now it's safe to do this - the menu items that each plugin hangs off of
            // will have been created
            iEngine.UIManager = this;

            // Restore settings needed to position & size form
            iEngine.Settings.Load("GraphicalUI", this);
        }