We want to fire Events, with event names saved in SQL Server
In the SQL Server you'll find ApplicationExitRequestEvent When we click the menu button, we'll get the string from the MenuItem
Type t = Type.GetType(SelectedMenu.View + "," + "AssemblyName");
var obj = Activator.CreateInstance(t);
if (t != null)
{
//Working firing Event with className
EventAggregator.GetEvent<ApplicationExitRequestEvent>().Publish(null);
//Generic?
EventAggregator.GetEvent<???>().Publish(null);
}
Ist it possible to do? Working with PRISM and MVVM - WPF - .NET 4.0