Skip to content

Conversation

@trojanobelix
Copy link
Collaborator

Add/extend some exception catches to provide more information what was wrong
Show filename on MouseHover in TabControl

Copy link
Collaborator

@nimrof nimrof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few comments and i to me the change here introduces a bug.
If you create a device then remove it save in the menu is not disabled

this.tabControl1.ControlRemoved += new System.Windows.Forms.ControlEventHandler(this.tabControl1_ControlsChanged);

My nitpicking brain may also want to revert the changes in tabControl1_MouseClick as there is no actual change AFIK, but feel free to ignore that

using static System.Windows.Forms.VisualStyles.VisualStyleElement;
//using static System.Windows.Forms.VisualStyles.VisualStyleElement;
//using SourceGrid.Cells.Controllers;
//using ToolTip = System.Windows.Forms.ToolTip;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe remove the commented code?

Sq4NMHLMowQdiucH/4Pfs7VzE+N+UlgC2l9c92MYCO0CtYrrfh+7bu0ECD4DV0bDX6oC05+kVxpa9Ajo
2QYurhuaugdc7gD9T6ZiKZ4UpBJyOeD9jL4pA/TeAp2r/tzq5zh9AFI0q8QNcHAIjOQpe63Fuzua5/bn
HW9+kH4AMgFyjcd8GS4AAAAJcEhZcwAACw4AAAsOAUC+4UEAAAAHdElNRQfkCwILIglO4xvLAAAAD3RF
HW9+kH4AMgFyjcd8GS4AAAAJcEhZcwAACwwAAAsMAT9AIsgAAAAHdElNRQfkCwILIglO4xvLAAAAD3RF
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need a little help with the changes here :D

trojanobelix and others added 12 commits February 7, 2025 07:53
Co-authored-by: Lars Elgtvedt Susaas <lars.elgtvedt.susaas@brunvoll.no>
Co-authored-by: Lars Elgtvedt Susaas <lars.elgtvedt.susaas@brunvoll.no>
The count label is required to compile against the CANopenNode v4
library since the definitions are checked by code like the following
in CANopen.c

    #if OD_CNT_NMT != 1
     #error OD_CNT_NMT from OD.h not correct!
    #endif

This problem is exhibited when there is no xpd file that has the
custom properties and there is only an EDS file available. The
StorageLocation is an example of setting the custom property for
the CO_storageGroup and this is adding a similar extension for
the CO_countLabel.

An example eds for NMT 0x1000 is shown below
    [1000]
    ParameterName=Device type
    ObjectType=0x7
    ;CountLabel=NMT
    ;StorageLocation=ROM
    DataType=0x0007
    AccessType=ro
    DefaultValue=0x00000000
    PDOMapping=0

Signed-off-by: Charles Hardin <charles.hardin@redoxblox.com>
@nimrof
Copy link
Collaborator

nimrof commented Nov 21, 2025

@trojanobelix That last commit changed a lot, do you have a list of the changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants