public void Stop() { if (StopPlatform()) { IsRecording = false; RecordingStatusUpdated?.Invoke(this, EventArgs.Empty); StopWritingFile(); _timer.Change(Timeout.Infinite, Timeout.Infinite); } }
public void Start(string fileNameAddendum = null) { if (StartPlatform()) { IsRecording = true; RecordingStatusUpdated?.Invoke(this, EventArgs.Empty); _start = DateTime.Now; StartWritingFile(fileNameAddendum); _timer.Change(TimerInterval, TimerInterval); } }