Skip to content

Commit b493642

Browse files
committed
add active alarms in error list
1 parent f4dfc78 commit b493642

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

UnderAutomation.Fanuc.Showcase.Forms/Components/ErrorListControl.Designer.cs

Lines changed: 27 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnderAutomation.Fanuc.Showcase.Forms/Components/ErrorListControl.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public partial class ErrorListControl : UserControl, IUserControl
1212
public ErrorListControl(FanucRobot robot)
1313
{
1414
TypeDescriptor.AddAttributes(typeof(ErrorList), new TypeConverterAttribute(typeof(ObjectConverter)));
15+
TypeDescriptor.AddAttributes(typeof(ErrallSectionItem), new TypeConverterAttribute(typeof(ObjectConverter)));
1516

1617
_robot = robot;
1718
InitializeComponent();
@@ -42,5 +43,7 @@ public void OnOpen()
4243
private void Show(IFanucContent content)
4344
{
4445
gridErrorList.SetSelectedObject(content );
46+
47+
gridActiveAlarms.SetSelectedObject((content as ErrorList)?.FilterActiveAlarms());
4548
}
4649
}

UnderAutomation.Fanuc.Showcase.Forms/Components/FeaturesControl.Designer.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)