コード例 #1
0
        public MemoryGraph(MemVisualizer.MainWindow mainViewerWindow, MemManager.Log.Log log)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            mGraphVScrollBar.Enabled = false;
            mGraphHScrollBar.Enabled = false;
            mTextComp1.Text = mTextComp2.Text = "";
            mComparePressed = mCompareProcessed = false;
            //
            // TODO: Add any constructor code after InitializeComponent call
            //

            mMainViewWindow = mainViewerWindow;

            mLog = log;

            CreateMemoryGraph(log);

            mHighlightIndexStart = null;
            mHighlightIndexEnd = null;

            for (int i = 1; i <= 10; ++i)
            {
                mZoomComboControl.Items.Add("Zoom " + i.ToString() + "x");
            }
            mZoomComboControl.SelectedIndex = 0;
        }
コード例 #2
0
 //-------------------------------------------------------------------
 public void SetExeType(MemVisualizer.ExeType p)
 {
     mExe = p;
 }
コード例 #3
0
        public GraphicalView(MemVisualizer.MainWindow mainViewerWindow)
        {
            BlockSizeSelectionMutex = new System.Threading.Mutex();
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            // TODO: Add any constructor code after InitializeComponent call
            mMainViewWindow = mainViewerWindow;

            mHasMemoryBlockOccupancyBeenCalculated = true;
            mWindowUpdate = false;
            mPopulateList = true;

            mInfo2Graph = new GVstruct();
            mPen = new Pen(Color.White, 1);
            mSolidBrush = new SolidBrush(Color.White);

            mStartIndexOfHeap = uint.MaxValue;
            mNumberBlocks = 0;
            mBytesInBlock = 8192 * 2;
            mBlocksInRow = 0;
            mEndIndexOfHeap = 0;

            // Set resize redraw
            SetStyle(ControlStyles.UserPaint, true);
            CreateBitmap(mMemoryView.Width, (int)mBlockHeight);
        }