private void StopRec() { if (this.recContinue) { this.record.SetRecoding(this.sql, false); } else { this.record.SetComplete(this.sql); } try { Tuner.State state = this.tuner.GetState(); if (state == Tuner.State.Recoding || state == Tuner.State.Paused) { this.tuner.StopRec(); } } catch { } try { if (this.tuner.IsOpen()) { this.tuner.Close(); } } catch { } this.SetResult(); }
private void CheckRecording() { Tuner.State state = this.GetState(); if (state == Tuner.State.Recoding || state == Tuner.State.Paused) { throw new Exception("録画中です。"); } }