public void Add_MSG(string msg)
 {
     try
     {
         if (!Dispatcher.CheckAccess()) // 컨트롤 요청이 들어올 경우
         {                              // 델리게이트를 이용해 Add_MSG 메서드를 다시 호출
             SetEXT_Text_Callback d = new SetEXT_Text_Callback(Add_MSG);
             Dispatcher.Invoke(d, new object[] { msg });
         }
         else
         {                                     // 컨트롤 접근이 가능할 경우, 다음 구문 처리
             this.lbSerchResult.Content = msg; // 채팅 문자열 출력
         }
     }
     catch { } // 멀티 스레드 환경에서 뜻하지 않은 예외가 발생할 경우 처리
 }
 public void Add_MSG(string msg)
 {
     try
     {
         if (!Dispatcher.CheckAccess()) // 컨트롤 요청이 들어올 경우
         {   // 델리게이트를 이용해 Add_MSG 메서드를 다시 호출
             SetEXT_Text_Callback d = new SetEXT_Text_Callback(Add_MSG);
              Dispatcher.Invoke(d, new object[] { msg });
         }
         else
         {   // 컨트롤 접근이 가능할 경우, 다음 구문 처리
             this.lbSerchResult.Content = msg;  // 채팅 문자열 출력
         }
     }
     catch { } // 멀티 스레드 환경에서 뜻하지 않은 예외가 발생할 경우 처리
 }