Esempio n. 1
0
 private static void RegisterScreens(IScreenContainer container)
 {
     container.Register <SimpleScreenView>();
     container.Register <ScreenWithoutInterfaceView, ScreenWithoutInterfaceController>();
     container.Register <IMyScreen, MyScreenView, MyScreenController>();
     container.Register <IMyPopup, MyPopupView, MyPopupController>();
 }
Esempio n. 2
0
 protected override void SetupScreens(IScreenContainer container)
 {
     container.Register <SimpleScreenView>();
     container.Register <ScreenWithoutInterfaceView, ScreenWithoutInterfaceLogic>();
     container.Register <IMyScreen, MyScreenView, MyScreenLogic>();
     container.Register <IMyPopup, MyPopupView, MyPopupLogic>();
 }
Esempio n. 3
0
 public static void Register <TView, TLogic>(this IScreenContainer container)
     where TLogic : IScreen
 {
     container.Register(typeof(TLogic), typeof(TView), typeof(TLogic));
 }
Esempio n. 4
0
 public static void Register <TView>(this IScreenContainer container)
     where TView : IScreen
 {
     container.Register(typeof(TView), typeof(TView), typeof(TView));
 }
Esempio n. 5
0
 public static void Register <TInterface, TView, TLogic>(this IScreenContainer container)
     where TInterface : IScreen
     where TLogic : TInterface
 {
     container.Register(typeof(TInterface), typeof(TView), typeof(TLogic));
 }