示例#1
0
 public void Init(IComments view, bool IsPostBack)
 {
     _view = view;
     bool IsLogin = _userSession.LoggedIn;
     if (!IsLogin)
     {
         //TODO:Hien thong bao chua dang nhap khong the gui comment
     }
     if (_webContext.CurrentUser != null)
         _view.ShowCommentBox(true);
     else
         _view.ShowCommentBox(false);
 }
示例#2
0
        public void Init(IComments view, bool IsPostBack)
        {
            _view = view;
            bool IsLogin = _userSession.LoggedIn;

            if (!IsLogin)
            {
                //TODO:Hien thong bao chua dang nhap khong the gui comment
            }
            if (_webContext.CurrentUser != null)
            {
                _view.ShowCommentBox(true);
            }
            else
            {
                _view.ShowCommentBox(false);
            }
        }