Exemplo n.º 1
0
        /// <summary>
        /// This creates a new tab to view memory.
        /// </summary>
        /// <param name="name">Display name of the tab.</param>
        /// <param name="select">Whether or not to select this new tab.</param>
        /// <param name="address"></param>
        /// <param name="length"></param>
        public void addMemoryViewerTab(string name, bool @select, ulong address, uint length)
        {
            // Create the new oTab class and tab page
            oTabMemoryViewer tabMemoryViewer = new oTabMemoryViewer(this, toolStrip, panelMain, mainToolStrip, name, address, length);

            tabs.Add(tabMemoryViewer);
            tabController.TabPages.Add(tabMemoryViewer.WorkingPage);
            tabMemoryViewer.WorkingPage.ImageIndex = tabController.ImageList.Images.IndexOfKey(@"memoryview.ico");

            if (select)
            {
                tabController.SelectedTab = tabMemoryViewer.WorkingPage;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// This creates a new tab to view memory.
        /// </summary>
        /// <param name="name">Display name of the tab.</param>
        /// <param name="select">Whether or not to select this new tab.</param>
        /// <param name="address"></param>
        /// <param name="length"></param>
        public void addMemoryViewerTab(string name, bool @select, ulong address, uint length)
        {
            // Create the new oTab class and tab page
            oTabMemoryViewer tabMemoryViewer = new oTabMemoryViewer(this, toolStrip, panelMain, mainToolStrip, name, address, length);
            tabs.Add(tabMemoryViewer);
            tabController.TabPages.Add(tabMemoryViewer.WorkingPage);
            tabMemoryViewer.WorkingPage.ImageIndex = tabController.ImageList.Images.IndexOfKey(@"memoryview.ico");

            if (select)
                tabController.SelectedTab = tabMemoryViewer.WorkingPage;
        }