コード例 #1
0
ファイル: Program.cs プロジェクト: YSheldon/XShell
 private static void RegisterScreens(IScreenContainer container)
 {
     container.Register <SimpleScreenView>();
     container.Register <ScreenWithoutInterfaceView, ScreenWithoutInterfaceController>();
     container.Register <IMyScreen, MyScreenView, MyScreenController>();
     container.Register <IMyPopup, MyPopupView, MyPopupController>();
 }
コード例 #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>();
 }
コード例 #3
0
 public static void Register <TView, TLogic>(this IScreenContainer container)
     where TLogic : IScreen
 {
     container.Register(typeof(TLogic), typeof(TView), typeof(TLogic));
 }
コード例 #4
0
 public static void Register <TView>(this IScreenContainer container)
     where TView : IScreen
 {
     container.Register(typeof(TView), typeof(TView), typeof(TView));
 }
コード例 #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));
 }