public void SetUnderlyingStream(HexBufferStream stream, DbgProcess process) { if (Process == process && DebuggerHexBufferStream.UnderlyingStream == stream) { return; } Process = process; DebuggerHexBufferStream.UnderlyingStream = stream; UnderlyingStreamChanged?.Invoke(this, EventArgs.Empty); UnderlyingProcessChanged?.Invoke(this, EventArgs.Empty); }
void SetUnderlyingStreamCore(HexBufferStream newStream) { if (stream == newStream) { return; } UnregisterEvents(); stream?.Dispose(); stream = newStream; RegisterEvents(); InvalidateAll(); UnderlyingStreamChanged?.Invoke(this, EventArgs.Empty); }
void DebuggerStream_UnderlyingStreamChanged(object sender, EventArgs e) => UnderlyingStreamChanged?.Invoke(this, EventArgs.Empty);