fix(demos): DemoUseMachiningProject subscribes CollectionItemAdded on MixedProgress

CollectionItemAdded is an event on MixedProgress0; the new SessionProgress sink does not expose it. Follows the SessionProgress->MixedProgress property rename.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
iamboss 2026-06-13 23:25:14 +08:00
parent 6f0cb1bc1c
commit 0fdba701fa

View File

@ -38,7 +38,7 @@ public static class DemoUseMachiningProject
using StreamWriter writer = new StreamWriter("msg.txt");
//show message if something abnormal.
localProjectService.SessionProgress.CollectionItemAdded += pack =>
localProjectService.MixedProgress.CollectionItemAdded += pack =>
{
if (pack.Tags.Contains(MessageFlag.Warning.ToString()) ||
pack.Tags.Contains(MessageFlag.Error.ToString()) ||