Example #1
0
    private void GetMsg(VoHttp vo)
    {
        int kefu = userModel.Get_NoticeState(ModelUser.RED_BUGMSG);

        if (kefu > 0)
        {
            userModel.Del_Notice(ModelUser.RED_BUGMSG);
        }
        dic = new object[100];
        int index = 0;

        object[] ddd = (object[])vo.data;
        for (int i = 0; i < ddd.Length; i++)
        {
            if ((int)((Dictionary <string, object>)ddd [i]) ["st"] < 2)
            {
                dic [index] = ddd [i];
                index++;
            }
        }
        list.numItems = index;
        if (index >= 1)
        {
            list.ScrollToView(index - 1);
        }
    }
 public override void Init()
 {
     base.Init();
     this.Create(Config.VIEW_ROLEGUESTBOOK);
     FindObject();
     InitDate();
     if (otherInfo["uid"].ToString().Equals(userModel.uid))
     {
         if (userModel.Get_NoticeState(ModelUser.RED_MSGBOARD) > 0)
         {
             userModel.Del_Notice(ModelUser.RED_MSGBOARD);
         }
     }
 }