Files
jimmyandClaude 90d09449ae Initial commit: .NET practice project
Added CSharp, Nots, and Wpf directories with various practice exercises and projects.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-25 21:02:53 +08:00

20 lines
416 B
C#

using System.Windows;
using System.Windows.Controls;
using ModuleA.Event;
using Prism.Events;
namespace ModuleA.Views;
public partial class ViewC : UserControl
{
public ViewC(IEventAggregator aggregator)
{
InitializeComponent();
var messageEvent = aggregator.GetEvent<MessageEvent>();
messageEvent.Subscribe(arg =>
{
MessageBox.Show(arg);
});
}
}