Skip to content

Commit fe9db48

Browse files
committed
Small update to comments and property names
1 parent 23e2cdc commit fe9db48

8 files changed

+10
-28
lines changed

OpenEphys.Onix1.Design/ChannelConfigurationDialog.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ public abstract partial class ChannelConfigurationDialog : Form
1818
{
1919
internal event EventHandler OnResizeZedGraph;
2020

21-
/// <summary>
22-
/// Local variable that holds the channel configuration in memory until the user presses Okay
23-
/// </summary>
2421
internal ProbeGroup ChannelConfiguration;
2522

2623
internal readonly List<int> ReferenceContacts = new();

OpenEphys.Onix1.Design/ContactTag.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class ContactTag
1818
/// <summary>
1919
/// Gets the contact index of this contact.
2020
/// </summary>
21-
public int ContactIndex;
21+
public int ContactIndex { get; }
2222

2323
/// <summary>
2424
/// Gets the string defining the probe and contact index for this contact.

OpenEphys.Onix1.Design/NeuropixelsV2eBno055Dialog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public ConfigureNeuropixelsV2eBno055 ConfigureNode
2121
/// Initializes a new instance of <see cref="NeuropixelsV2eBno055Dialog"/> with the given
2222
/// <see cref="ConfigureNeuropixelsV2eBno055"/> object.
2323
/// </summary>
24-
/// <param name="configureNode">A <see cref="ConfigureNeuropixelsV2eBno055"/> object that contains configuration settings</param>
24+
/// <param name="configureNode">A <see cref="ConfigureNeuropixelsV2eBno055"/> object that contains configuration settings.</param>
2525
public NeuropixelsV2eBno055Dialog(ConfigureNeuropixelsV2eBno055 configureNode)
2626
{
2727
InitializeComponent();

OpenEphys.Onix1.Design/NeuropixelsV2eChannelConfigurationDialog.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace OpenEphys.Onix1.Design
1010
{
1111
/// <summary>
12-
/// Partial class to create a GUI for <see cref="ConfigureNeuropixelsV2e"/>.
12+
/// Partial class to create a channel configuration GUI for <see cref="ConfigureNeuropixelsV2e"/>.
1313
/// </summary>
1414
public partial class NeuropixelsV2eChannelConfigurationDialog : ChannelConfigurationDialog
1515
{
@@ -20,11 +20,6 @@ public partial class NeuropixelsV2eChannelConfigurationDialog : ChannelConfigura
2020
/// Public <see cref="NeuropixelsV2QuadShankProbeConfiguration"/> object that is manipulated by
2121
/// <see cref="NeuropixelsV2eChannelConfigurationDialog"/>.
2222
/// </summary>
23-
/// <remarks>
24-
/// When a <see cref="NeuropixelsV2QuadShankProbeConfiguration"/> is passed to
25-
/// <see cref="NeuropixelsV2eChannelConfigurationDialog"/>, it is copied and stored in this
26-
/// variable so that any modifications made to configuration settings can be easily reversed.
27-
/// </remarks>
2823
public NeuropixelsV2QuadShankProbeConfiguration ProbeConfiguration;
2924

3025
/// <summary>

OpenEphys.Onix1.Design/NeuropixelsV2eDialog.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ public partial class NeuropixelsV2eDialog : Form
1717
/// Public <see cref="ConfigureNeuropixelsV2e"/> object that is manipulated by
1818
/// <see cref="NeuropixelsV2eDialog"/>.
1919
/// </summary>
20-
/// <remarks>
21-
/// When a <see cref="ConfigureNeuropixelsV2e"/> is passed to
22-
/// <see cref="NeuropixelsV2eDialog"/>, it is copied and stored in this
23-
/// variable so that any modifications made to configuration settings can be easily reversed.
24-
/// </remarks>
2520
public ConfigureNeuropixelsV2e ConfigureNode { get; set; }
2621

2722
/// <summary>

OpenEphys.Onix1.Design/NeuropixelsV2eHeadstageDialog.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public partial class NeuropixelsV2eHeadstageDialog : Form
1515
/// <summary>
1616
/// A <see cref="NeuropixelsV2eBno055Dialog"/> that configures a <see cref="ConfigureNeuropixelsV2eBno055"/>.
1717
/// </summary>
18-
public readonly NeuropixelsV2eBno055Dialog ConfigureBno055;
18+
public readonly NeuropixelsV2eBno055Dialog DialogBno055;
1919

2020
/// <summary>
2121
/// Initializes a new instance of a <see cref="NeuropixelsV2eHeadstageDialog"/>.
@@ -38,17 +38,17 @@ public NeuropixelsV2eHeadstageDialog(ConfigureNeuropixelsV2e configureNeuropixel
3838
this.AddMenuItemsFromDialogToFileOption(DialogNeuropixelsV2e, "NeuropixelsV2e");
3939
DialogNeuropixelsV2e.Show();
4040

41-
ConfigureBno055 = new(configureBno055)
41+
DialogBno055 = new(configureBno055)
4242
{
4343
TopLevel = false,
4444
FormBorderStyle = FormBorderStyle.None,
4545
Dock = DockStyle.Fill,
4646
Parent = this
4747
};
4848

49-
panelBno055.Controls.Add(ConfigureBno055);
50-
ConfigureBno055.Show();
51-
ConfigureBno055.Invalidate();
49+
panelBno055.Controls.Add(DialogBno055);
50+
DialogBno055.Show();
51+
DialogBno055.Invalidate();
5252
}
5353

5454
private void ButtonClick(object sender, System.EventArgs e)

OpenEphys.Onix1.Design/NeuropixelsV2eHeadstageEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public override bool EditComponent(ITypeDescriptorContext context, object compon
2222

2323
if (editorDialog.ShowDialog() == DialogResult.OK)
2424
{
25-
configureHeadstage.Bno055.Enable = editorDialog.ConfigureBno055.ConfigureNode.Enable;
25+
configureHeadstage.Bno055.Enable = editorDialog.DialogBno055.ConfigureNode.Enable;
2626

2727
configureHeadstage.NeuropixelsV2e.Enable = editorDialog.DialogNeuropixelsV2e.ConfigureNode.Enable;
2828
configureHeadstage.NeuropixelsV2e.ProbeConfigurationA = editorDialog.DialogNeuropixelsV2e.ConfigureNode.ProbeConfigurationA;

OpenEphys.Onix1.Design/NeuropixelsV2eProbeConfigurationDialog.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,13 @@ private enum ChannelPreset
5151
/// Public <see cref="NeuropixelsV2QuadShankProbeConfiguration"/> object that is manipulated by
5252
/// <see cref="NeuropixelsV2eProbeConfigurationDialog"/>.
5353
/// </summary>
54-
/// <remarks>
55-
/// When a <see cref="NeuropixelsV2QuadShankProbeConfiguration"/> is passed to
56-
/// <see cref="NeuropixelsV2eProbeConfigurationDialog"/>, it is copied and stored in this
57-
/// variable so that any modifications made to configuration settings can be easily reversed.
58-
/// </remarks>
5954
public NeuropixelsV2QuadShankProbeConfiguration ProbeConfiguration { get; set; }
6055

6156
/// <summary>
6257
/// Initializes a new instance of <see cref="NeuropixelsV2eProbeConfigurationDialog"/>.
6358
/// </summary>
6459
/// <param name="configuration">A <see cref="NeuropixelsV2QuadShankProbeConfiguration"/> object holding the current configuration settings.</param>
65-
/// <param name="calibrationFile">String containing the path to the gain calibration file for this probe.</param>
60+
/// <param name="calibrationFile">String containing the path to the calibration file for this probe.</param>
6661
public NeuropixelsV2eProbeConfigurationDialog(NeuropixelsV2QuadShankProbeConfiguration configuration, string calibrationFile)
6762
{
6863
InitializeComponent();

0 commit comments

Comments
 (0)