Skip to content

Commit b4d910c

Browse files
committed
Add Headstage64 GUIs
- Add editors that allows either the configure device node or the headstage node properties to open the appropriate dialog - Move properties from the trigger nodes to the configure nodes
1 parent afe4320 commit b4d910c

28 files changed

+6480
-455
lines changed

OpenEphys.Onix1.Design/Headstage64Dialog.Designer.cs

Lines changed: 218 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
using System.Windows.Forms;
2+
3+
namespace OpenEphys.Onix1.Design
4+
{
5+
/// <summary>
6+
/// Partial class to create a channel configuration GUI for a <see cref="Headstage64Dialog"/>.
7+
/// </summary>
8+
public partial class Headstage64Dialog : Form
9+
{
10+
internal readonly GenericDeviceDialog Rhd2164Dialog;
11+
internal readonly GenericDeviceDialog Bno055Dialog;
12+
internal readonly GenericDeviceDialog TS4231V1Dialog;
13+
internal readonly Headstage64ElectricalStimulatorSequenceDialog ElectricalStimulatorSequenceDialog;
14+
internal readonly Headstage64OpticalStimulatorSequenceDialog OpticalStimulatorSequenceDialog;
15+
16+
/// <summary>
17+
/// Initializes a new instance of a <see cref="Headstage64Dialog"/>.
18+
/// </summary>
19+
/// <param name="configureNode">Configure node for a Headstage 64.</param>
20+
public Headstage64Dialog(ConfigureHeadstage64 configureNode)
21+
{
22+
InitializeComponent();
23+
24+
Rhd2164Dialog = new(new ConfigureRhd2164(configureNode.Rhd2164));
25+
Rhd2164Dialog.SetChildFormProperties(this).AddDialogToTab(tabPageRhd2164);
26+
27+
Bno055Dialog = new(new ConfigureBno055(configureNode.Bno055));
28+
Bno055Dialog.SetChildFormProperties(this).AddDialogToTab(tabPageBno055);
29+
30+
TS4231V1Dialog = new(new ConfigureTS4231V1(configureNode.TS4231));
31+
TS4231V1Dialog.SetChildFormProperties(this).AddDialogToTab(tabPageTS4231);
32+
33+
ElectricalStimulatorSequenceDialog = new(configureNode.ElectricalStimulator);
34+
ElectricalStimulatorSequenceDialog.SetChildFormProperties(this).AddDialogToTab(tabPageElectricalStimulator);
35+
36+
OpticalStimulatorSequenceDialog = new(configureNode.OpticalStimulator);
37+
OpticalStimulatorSequenceDialog.SetChildFormProperties(this).AddDialogToTab(tabPageOpticalStimulator);
38+
39+
this.AddMenuItemsFromDialogToFileOption(ElectricalStimulatorSequenceDialog)
40+
.AddMenuItemsFromDialogToFileOption(OpticalStimulatorSequenceDialog);
41+
}
42+
}
43+
}

0 commit comments

Comments
 (0)