コード例 #1
0
        public PlayerOverlayDesignModel(int seatNumber, IPlayerStatusViewModel playerStatus, ITableOverlaySettingsViewModel overlaySettings)
            : base(playerStatus)
        {
            InitializeWith(overlaySettings, seatNumber);

            PlayerStatistics = new PlayerStatisticsDesignModel(seatNumber);
        }
コード例 #2
0
        public static void build()
        {
            statusContainer = new UnityContainer();

            statusContainer.RegisterType <IPlayerStatusViewModel, PlayerStatusViewModel>(new ContainerControlledLifetimeManager());

            statusContainer.RegisterType <IPlayerStatus, PlayerStatus>(new ContainerControlledLifetimeManager());

            statusContainer.RegisterType <IPlayerStatusProcessor, PlayerStatusProcessor>(new ContainerControlledLifetimeManager());

            playerStatus = statusContainer.Resolve <PlayerStatus>();

            playerStatusProcessor = statusContainer.Resolve <PlayerStatusProcessor>();

            playerStatusViewModel = statusContainer.Resolve <PlayerStatusViewModel>();
        }
コード例 #3
0
 public PlayerOverlayDesignModel(IPlayerStatusViewModel playerStatus, ITableOverlaySettingsViewModel overlaySettings)
     : this(0, playerStatus, overlaySettings)
 {
 }
コード例 #4
0
 public PlayerOverlayViewModel(IPlayerStatusViewModel playerStatus)
 {
     PlayerStatus = playerStatus;
 }