public SymbolItem(SymbolEntry symbol) { if ((this.symbol = symbol) == null) throw new ArgumentNullException("symbol"); this.InitializeComponent(); this.nameText .Text = symbol.Name; this.valueText.Text = Utils.GetHexString((ulong)symbol.Value, prefix:true); this.typeText .Text = symbol.Flags.ToString(); }
public SymbolContextItem(CodeUnit unit, SymbolEntry symbol) { this.InitializeComponent(); this.unit = unit; this.symbol = symbol; this.symbolText.Text = symbol.Name; // Check if breakpoint already set - if so, give option to clear this.breakpoint = Application.Debugger.Breakpoints.GetBreakpoint(symbol.Value); if (this.breakpoint != null && !this.breakpoint.IsActive) { this.breakpoint = null; } this.UpdateBPText(); }