private void OnMsgSuccessEvent(WMessage wmessage)
        {
            string userName = "******";

            eventLogMng.WriteLog("DMB_DS", EventLogEntryType.Information, "재난메시지 ID - " + wmessage.ID.ToString() + "파싱성공", userName);

            if (wmessage.SOPT_DMB != wmessage.SOPT_DMB_COMMIT)
            {
                if ((wmessage.SendPart == wmessage.CommitPart) && (wmessage.SOPT_SMS == wmessage.SOPT_SMS_COMMIT))
                {
                    this.DmbIssuesLV.Items[wmessage.ID.ToString()].SubItems[6].Text = "방송사(EWS)";

                    if (this.DmbIssuesLV.SelectedItems.Count > 0)
                    {
                        for (int j = 0; j < this.DmbIssuesLV.Items.Count; j++)
                        {
                            for (int i = 0; i < this.DmbIssuesLV.SelectedItems.Count; i++)
                            {
                                string key = this.DmbIssuesLV.SelectedItems[i].Name;

                                if (this.DmbIssuesLV.Items[key].Selected == true)
                                {
                                    this.DmbIssuesLV.Items[key].Selected = false;
                                }
                                if (this.DmbIssuesLV.Items[key].Focused == true)
                                {
                                    this.DmbIssuesLV.Items[key].Focused = false;
                                }
                            }
                        }
                    }

                    this.DmbIssuesLV.Items[wmessage.ID.ToString()].Selected = true;
                    this.DmbIssuesLV.Items[wmessage.ID.ToString()].Focused  = true;
                    this.DmbIssuesLV.Items[wmessage.ID.ToString()].EnsureVisible();
                    this.SetStatusLB();
                }
            }
        }
Exemple #2
0
 /// <summary>
 /// 윈도우 이벤트로그에 Error 이벤트를 기록한다.
 /// </summary>
 /// <param name="_msg"></param>
 private void SetEventLogError(string _msg)
 {
     EventLogMng.WriteLog("EDWS DB Manager", EventLogEntryType.Error, _msg);
 }
Exemple #3
0
 /// <summary>
 /// 윈도우 이벤트로그에 Information 이벤트를 기록한다.
 /// </summary>
 /// <param name="_msg"></param>
 private void SetEventLogInfo(string _msg)
 {
     EventLogMng.WriteLog("EDWS DB Manager", EventLogEntryType.Information, _msg);
 }