SignListViewModel signListViewModel; //签到信息视图模型

        public SignController(ISignInfo signInfo, IGameMember gameMember, IContribution contribution, IMemberGroup memberGroup)
        {
            EFSignInfo     = signInfo;
            EFGameMember   = gameMember;
            EFContribution = contribution;
            EFMemberGroup  = memberGroup;
        }
        MemberGroupListViewModel MemberGroupListViewModel; //社团分组表视图

        public MemberGroupController(IMemberGroup memberGroup, IGameMember gameMember, ISignInfo signInfo, IContribution contribution)
        {
            EFMemberGroup  = memberGroup;
            EFGameMember   = gameMember;
            EFSignInfo     = signInfo;
            EFContribution = contribution;
        }
예제 #3
0
 public RelevantController(IGameMember gameMember, IInformMessage informMessage, IQuestionary questionary, IArticle article, IFeedBack feedBack)
 {
     EFInformMessage = informMessage;
     EFQuestionary   = questionary;
     EFArticle       = article;
     EFFeedBack      = feedBack;
     EFGameMember    = gameMember;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GridWithBorder" /> class.
 /// </summary>
 /// <param name="gameMember">Game member to decorate.</param>
 /// <param name="borderStyle">Border decoration.</param>
 public GridWithBorder(IGameMember gameMember, GridBorderStyle borderStyle)
     : base(gameMember)
 {
     this.borderStyle = borderStyle;
 }
 public GameMemberController(IGameMember EFGameMember, IAllUserInfo allUserInfo, IRecover recover)
 {
     this.EFGameMember  = EFGameMember;
     this.EFAllUserInfo = allUserInfo;
     Recover            = recover;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Decorator" /> class.
 /// </summary>
 /// <param name="gameMember">IGameMember object.</param>
 protected Decorator(IGameMember gameMember)
 {
     this.GameMember = gameMember;
 }
        private void RenderGrid(int x, int y, IGameMember grid)
        {
            string[] gridLines = grid.GetTextRepresentation().Split('|');

            if (this.styles.ContainsKey(GlobalConstants.GridBorderStyle))
            {
                var style = this.styles[GlobalConstants.GridBorderStyle] as GridBorderStyle;
                var gridWithBorder = new GridWithBorder(grid, style);
                gridLines = gridWithBorder.GetTextRepresentation().Split('|');
            }

            foreach (var line in gridLines)
            {
                this.PrintOnPosition(x, y++, line);
            }

            this.PrintOnPosition(0, ++y, GameMessages.EnterNumberToMove, RenderConstants.GameMessagesColor);
            this.ResetConsoleColor();
            this.SaveCursorCurrentPosition();
        }
        /// <summary>
        /// Prints the grid on the console.
        /// </summary>
        /// <param name="grid">Using <see cref="GameFifteen.Models.Contracts.IGrid"/> that contains a list of tiles.</param>
        public void RenderPlayScreen(IGameMember grid)
        {
            int x = RenderConstants.InitialGridX;
            int y = RenderConstants.InitialGridY;

            this.ClearConsole();
            this.PrintOnPosition(RenderConstants.InitialWelcomeMessageX, RenderConstants.InitialWelcomeMessageY, GameMessages.Welcome, RenderConstants.ExplanationsColor);
            this.RenderGrid(x, y, grid);
        }
 public UserController(IAllUserInfo allUserInfo, IGameMember gameMember)
 {
     this.allUserInfo  = allUserInfo;
     this.EFGameMember = gameMember;
 }