Пример #1
0
 private void ShowNoticeDirect(string[] tempMsg) { //n|메시지 | 발신자id | mode | noticetime |제목
 
     try {
     
         if (tempMsg.Length > 5) {
         
             string nname = GetUserName(tempMsg[2]);
             Notice nform = new Notice();
             
             if (tempMsg[0].Equals("n")) { //실시간 공지사항 수신시 확인결과 전송 처리
             
                 nform.NoticeAlreadyRead += sendReadNotice;
             }
             
             nform.SetNoticeInfo(/*title*/tempMsg[5], /*content*/tempMsg[1], /*writerId*/ tempMsg[2], /*writerName*/ nname, /*tagKey*/ tempMsg[4]);
             nform.Show();
             nform.Activate();
             
             if (!tempMsg[0].Equals("r")) {
                 nform.DoFlashWindow();
             }
         }
         else
         {
             logWrite("메시지 배열 크기 작음 : " + tempMsg.Length.ToString());
         }
     }
     catch (Exception exception)
     {
         logWrite(exception.ToString());
     }
 }
Пример #2
0
        /// <summary>
        /// 공지사항 리스트 폼 생성
        /// </summary>
        /// <param name="tempMsg"></param>
        private void ShowNotice(string[] tempMsg) { //n|메시지 | 발신자id | mode | noticetime |seqnum| 제목
        
            try {
                if (tempMsg.Length > 6) {

                    string nname = GetUserName(tempMsg[2]);
                    Notice nform = new Notice();
                    if (tempMsg[0].Equals("r")) { //부재중 공지사항 리스트에서 수신
                        //nform.btn_confirm.MouseClick += new MouseEventHandler(btn_confirm_Click);
                    } else {//실시간 공지사항 수신시 확인결과 전송 처리
                        nform.btn_confirm.MouseClick += new MouseEventHandler(sendReadNotice);
                    }
                    nform.SetNoticeInfo(/*title*/tempMsg[6], /*content*/tempMsg[1], /*writerId*/ tempMsg[2], /*writerName*/ nname, /*tagKey*/ tempMsg[4]);
                    nform.Show();
                    nform.Activate();
                    if (!tempMsg[0].Equals("r")) {
                        nform.DoFlashWindow();
                    }
                } else {
                    logWrite("메시지 배열 크기 작음 : " + tempMsg.Length.ToString());
                }
            } catch (Exception exception) {
                logWrite(exception.ToString());
            }
        }