-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMidiControlPlugin.cs
More file actions
42 lines (32 loc) · 815 Bytes
/
MidiControlPlugin.cs
File metadata and controls
42 lines (32 loc) · 815 Bytes
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
36
37
38
39
40
41
42
using System.Windows.Forms;
using SDRSharp.Common;
namespace SDRSharp.MidiControl
{
public class MidiControlPlugin : ISharpPlugin
{
private const string _displayName = "Midicontrol";
private ISharpControl _control;
private MidiView _guiControl;
public string DisplayName
{
get { return _displayName; }
}
public bool HasGui
{
get { return true; }
}
public UserControl Gui
{
get { return _guiControl; }
}
public void Initialize(ISharpControl control)
{
_control = control;
_guiControl = new MidiView(_control);
}
public void Close()
{
_guiControl.OnClosed();
}
}
}