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>
20 lines
416 B
C#
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);
|
|
});
|
|
}
|
|
}
|