public void SetStream(Stream stream) { this.stream = stream; int linecount = (int)stream.Length / 0x10; ScrollBarVM.Maximum = linecount; HexViewVM.SetStream(stream); }
private void ScrollBarVM_ValueChanged(double value) { long val = (long)value; HexViewVM.SetStartOffset(val * 0x10); }