private void RecorderLogic_ReplayFinished(object sender, EventArgs e) { imageLogic.ClearCache(); Dispatcher.Invoke(async() => { await stateMachine.TransitAsync(StateMachine.Event.Stop); }); }
private void RecorderLogic_ReplayFinished(object sender, EventArgs e) { imageLogic.ClearCache(); Dispatcher.Invoke(() => { viewModel.State = State.Idle; viewModel.CurrentFrame = 0; Draw(); }); }
public void ClearCache() { imageLogic.ClearCache(); }