public void OpenSnapshots(IEnumerable <string> filenames) { DisposeInstance(); Instance = HeapRecording.FromSnapshots( Scheduler, Activities, filenames.OrderBy((f) => f) ); SubscribeToEvents(Instance); RefreshStatus(); RefreshSnapshots(); }
public void OpenSnapshots(IEnumerable <string> filenames) { DisposeInstance(); Instance = HeapRecording.FromSnapshots( Scheduler, Activities, filenames.OrderBy((f) => f) ); Instance.StatusChanged += (s, _) => RefreshStatus(); Instance.SnapshotsChanged += (s, _) => RefreshSnapshots(); RefreshStatus(); RefreshSnapshots(); }