コード例 #1
0
 /// <summary>
 /// 双击查看消息的详细信息 (未读界面)   消息发布提醒的应用
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvMsgInfoNewReaded_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         if (dgvMsgInfoNewReaded.Rows.Count > 0)
         {
             if (dgvMsgInfoNewReaded.CurrentRow.Cells["回复"].Value.ToString() == "需要收条" || dgvMsgInfoNewReaded.CurrentRow.Cells["回复"].Value.ToString() == "不需要")
             {
                 string strId      = dgvMsgInfoNewReaded.CurrentRow.Cells["id"].Value.ToString();
                 string strUser_id = App.UserAccount.UserInfo.User_id.ToString();
                 if (strId != "" && strUser_id != "")
                 {
                     frmMsgSendDetailsCheck frm = new frmMsgSendDetailsCheck(strId, strUser_id);
                     frm.ShowDialog();
                 }
             }
             else
             {
                 App.Msg("当前消息没有查看详细信息功能!");
                 return;
             }
         }
     }
     catch
     {
     }
 }
コード例 #2
0
 /// <summary>
 /// 双击查看消息详细信息 已读界面
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvHistoryMsgNew_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         if (dgvHistoryMsgNew.Rows.Count > 0)
         {
             string strId      = dgvHistoryMsgNew.CurrentRow.Cells["Column9"].Value.ToString();
             string strUser_id = App.UserAccount.UserInfo.User_id.ToString();
             if (strId != "" && strUser_id != "")
             {
                 frmMsgSendDetailsCheck frm = new frmMsgSendDetailsCheck(strId, strUser_id);
                 frm.ShowDialog();
             }
         }
     }
     catch
     {
     }
 }