public CallstackViewer( EmuDebugger debugger )
            : this()
        {
            this.Debugger = debugger;

            Bitmap image = Properties.Resources.CallstackIcon as Bitmap;
            this.Icon = Icon.FromHandle( image.GetHicon() );
        }
Beispiel #2
0
        public CallstackViewer(EmuDebugger debugger)
            : this()
        {
            this.Debugger = debugger;

            Bitmap image = Properties.Resources.CallstackIcon as Bitmap;

            this.Icon = Icon.FromHandle(image.GetHicon());
        }
        public StatisticsViewer( EmuDebugger debugger )
            : this()
        {
            this.Debugger = debugger;
            this.Sink = debugger.Host.Counters;

            this.toolStrip1.Enabled = false;

            this._nameFont = new Font( "Tahoma", 8.0f, FontStyle.Regular );
            this._valueFont = new Font( "Courier New", 8.0f, FontStyle.Regular );

            Bitmap image = Properties.Resources.StatisticsIcon as Bitmap;
            this.Icon = Icon.FromHandle( image.GetHicon() );
        }
Beispiel #4
0
        public StatisticsViewer(EmuDebugger debugger)
            : this()
        {
            this.Debugger = debugger;
            this.Sink     = debugger.Host.Counters;

            this.toolStrip1.Enabled = false;

            this._nameFont  = new Font("Tahoma", 8.0f, FontStyle.Regular);
            this._valueFont = new Font("Courier New", 8.0f, FontStyle.Regular);

            Bitmap image = Properties.Resources.StatisticsIcon as Bitmap;

            this.Icon = Icon.FromHandle(image.GetHicon());
        }
Beispiel #5
0
        public LogViewer(EmuDebugger debugger)
            : this()
        {
            this.Debugger = debugger;

            string[] names = Enum.GetNames(typeof(Feature));
            _features = new FeatureInfo[names.Length];
            foreach (string name in names)
            {
                FeatureInfo feature = new FeatureInfo(name);
                int         value   = ( int )Enum.Parse(typeof(Feature), name);
                _features[value] = feature;
            }

            Log.Instance = this;

            _addLine = new AddLineDelegate(this.AddLine);

            listView_Resize(this, EventArgs.Empty);
            criticalToolStripMenuItem.ForeColor   = Color.DarkRed;
            verboseToolStripMenuItem.ForeColor    = Color.DarkGreen;
            everythingToolStripMenuItem.ForeColor = Color.Blue;

            _lines = new List <ListViewItem>(10000);

            if ((System.Diagnostics.Debugger.IsAttached == true) &&
                (System.Diagnostics.Debugger.IsLogging() == true))
            {
                _debugEnabled = true;
            }
            else
            {
                _debugEnabled = false;
            }
            debugWriteToolStripButton.Visible = _debugEnabled;
            toolStripSeparator3.Visible       = _debugEnabled;

            Bitmap image = Properties.Resources.OutputIcon as Bitmap;

            this.Icon = Icon.FromHandle(image.GetHicon());

            this.LoadSettings();

            this.Refilter();
        }
Beispiel #6
0
        public LogViewer( EmuDebugger debugger )
            : this()
        {
            this.Debugger = debugger;

            string[] names = Enum.GetNames( typeof( Feature ) );
            _features = new FeatureInfo[ names.Length ];
            foreach( string name in names )
            {
                FeatureInfo feature = new FeatureInfo( name );
                int value = ( int )Enum.Parse( typeof( Feature ), name );
                _features[ value ] = feature;
            }

            Log.Instance = this;

            _addLine = new AddLineDelegate( this.AddLine );

            listView_Resize( this, EventArgs.Empty );
            criticalToolStripMenuItem.ForeColor = Color.DarkRed;
            verboseToolStripMenuItem.ForeColor = Color.DarkGreen;
            everythingToolStripMenuItem.ForeColor = Color.Blue;

            _lines = new List<ListViewItem>( 10000 );

            if( ( System.Diagnostics.Debugger.IsAttached == true ) &&
                ( System.Diagnostics.Debugger.IsLogging() == true ) )
            {
                _debugEnabled = true;
            }
            else
            {
                _debugEnabled = false;
            }
            debugWriteToolStripButton.Visible = _debugEnabled;
            toolStripSeparator3.Visible = _debugEnabled;

            Bitmap image = Properties.Resources.OutputIcon as Bitmap;
            this.Icon = Icon.FromHandle( image.GetHicon() );

            this.LoadSettings();

            this.Refilter();
        }