Beispiel #1
0
 /// <summary>
 /// Register all viewmodel that extend ZeroBaseModel
 /// </summary>
 /// <param name="viewmodelsAreTransient"></param>
 public static void RegisterViewModels(bool viewmodelsAreTransient)
 {
     ZeroApp.RegisterMany(type => type.IsClass && !type.IsAbstract && type.IsSubclassOf(typeof(ZeroBaseModel)), viewmodelsAreTransient);
 }
Beispiel #2
0
 /// <summary>
 /// Register all viewmodel that extend ZeroBaseModel
 /// </summary>
 public static void RegisterViewModels()
 {
     ZeroApp.RegisterMany(type => type.IsClass && !type.IsAbstract && type.IsSubclassOf(typeof(ZeroBaseModel)));
 }
Beispiel #3
0
 /// <summary>
 /// Register all content page
 /// </summary>
 /// <param name="pagesAreTransient"></param>
 public static void RegisterPages(bool pagesAreTransient)
 {
     ZeroApp.RegisterMany(type => type.IsClass && !type.IsAbstract && type.IsSubclassOf(typeof(ContentPage)), pagesAreTransient);
 }
Beispiel #4
0
 /// <summary>
 /// Register all content page
 /// </summary>
 public static void RegisterPages()
 {
     ZeroApp.RegisterMany(type => type.IsClass && !type.IsAbstract && type.IsSubclassOf(typeof(ContentPage)));
 }