|
| 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