-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathTetraPlugin.cs
35 lines (29 loc) · 844 Bytes
/
TetraPlugin.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using SDRSharp.Common;
using System.Windows.Forms;
namespace SDRSharp.Tetra
{
public class TetraPlugin : ISharpPlugin
{
private const string _displayName = "TETRA Demodulator";
private ISharpControl _controlInterface;
private TetraPanel _qpskPanel;
public UserControl Gui
{
get { return _qpskPanel; }
}
public string DisplayName
{
get { return _displayName; }
}
public void Initialize(ISharpControl control)
{
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
_controlInterface = control;
_qpskPanel = new TetraPanel(_controlInterface);
}
public void Close()
{
_qpskPanel.SaveSettings();
}
}
}