Exemple #1
0
        public CardViewModel(IRegionManager regionManager, IEventAggregator eventAggregator)
        {
            this.regionManager      = regionManager;
            this.receive_Aggregator = eventAggregator;
            this.send_Aggregator    = eventAggregator;

            _achieveModel = AchieveModel.CreateNewModel();
            _friendModel  = FriendModel.CreateNewModel();
            _familyModel  = FamilyModel.CreateNewModel();
            _blackModel   = BlackModel.CreateNewModel();
            _resultModel  = ResultModel.CreateNewModel();
            _msgModel     = MsgModel.CreateNewModel();

            //获取日志记录实例
            this.ilogger = ILogger.GetInstance();
            //实例化
            achieveList = new List <AchieveViewModel>();
            //实例化
            msgList = new List <MsgViewModel>();

            ChangePage(1, Paging.ACH, this._pagingAchieve);
            ChangePage(1, Paging.MSG, this._pagingMsg);

            RequestEvent(); //订阅接收信息事件
        }