SDRSharper/Plugins/SDRSharper.WaveRecorder/SDRSharp.WavRecorder/WavRecorderPlugin.cs
SDRSharpR c07e6e6034 SDRSharper (SDRSharp Remake) Full Source (VS2017)
SDRSharper (SDRSharp Remake) Full Source (VS2017)
2018-03-26 14:02:05 -07:00

35 lines
656 B
C#

using SDRSharp.Common;
using System.Windows.Forms;
namespace SDRSharp.WavRecorder
{
public class WavRecorderPlugin : ISharpPlugin
{
private const string DefaultDisplayName = "Recording";
private ISharpControl _control;
private RecordingPanel _guiControl;
public bool HasGui => true;
public UserControl GuiControl => this._guiControl;
public string DisplayName => "Recording";
public void Initialize(ISharpControl control)
{
this._control = control;
this._guiControl = new RecordingPanel(this._control);
}
public void Close()
{
if (this._guiControl != null)
{
this._guiControl.AbortRecording();
}
}
}
}