/// <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); }
/// <summary> /// Register all viewmodel that extend ZeroBaseModel /// </summary> public static void RegisterViewModels() { ZeroApp.RegisterMany(type => type.IsClass && !type.IsAbstract && type.IsSubclassOf(typeof(ZeroBaseModel))); }
/// <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); }
/// <summary> /// Register all content page /// </summary> public static void RegisterPages() { ZeroApp.RegisterMany(type => type.IsClass && !type.IsAbstract && type.IsSubclassOf(typeof(ContentPage))); }