x86.frmMain.getMeMsg C# (CSharp) Method

getMeMsg() private method

private getMeMsg ( ) : void
return void
        private void getMeMsg()
        {
            infosClass infosClass = new infosClass();
            DataTable noRead = infosClass.getNoRead(sys.LoginUser.ID);
            if (noRead != null && noRead.Rows.Count > 0)
            {
                this._meMesg = "";
                for (int index = 0; index < noRead.Rows.Count && index <= 9; ++index)
                {
                    if (this._meMesg.Trim() != "")
                        this._meMesg += "\r\n";
                    frmMain frmMain = this;
                    string str = frmMain._meMesg + noRead.Rows[index]["content"].ToString().Trim() + "   " + noRead.Rows[index]["rq"].ToString().Replace("02013", "2013");
                    frmMain._meMesg = str;
                }
                infosClass.updateStu(Convert.ToInt32(noRead.Rows[0][0].ToString().Trim()));
            }
            else
            {
                DataTable noRead2 = infosClass.getNoRead_2(sys.LoginUser.ID);
                if (noRead2 != null && noRead2.Rows.Count > 0)
                    this._meMesg = noRead2.Rows[0]["content"].ToString().Trim();
            }
        }
frmMain