/// <summary> /// Registers view model classes in the entry assembly. /// </summary> public void RegisterEntryAssembly() { var entryAssembly = Assembly.GetEntryAssembly(); if (entryAssembly != null) { VMController.RegisterAssembly(entryAssembly); } }
public void RegisterEntryAssembly() => VMController.RegisterAssembly(Assembly.GetEntryAssembly());
public void RegisterAssembly(string assemblyName) => VMController.RegisterAssembly(Assembly.Load(new AssemblyName(assemblyName)));
public void RegisterAssembly(Assembly assembly) => VMController.RegisterAssembly(assembly);
/// <summary> /// Register view model classes in an assembly that are subtypes of a certain type. /// </summary> public void RegisterAssembly <T>(string assemblyName) where T : INotifyPropertyChanged => VMController.RegisterAssembly <T>(Assembly.Load(new AssemblyName(assemblyName)));
/// <summary> /// Register view model classes in an assembly that are subtypes of a certain type. /// </summary> public void RegisterAssembly <T>(Assembly assembly) where T : INotifyPropertyChanged => VMController.RegisterAssembly <T>(assembly);