Exemplo n.º 1
0
        }        //close FetchItemID method

        /// <summary>
        /// log message
        /// </summary>
        /// <param name="message"></param>
        private void logMessage(string message)
        {
            if (txtLogger.InvokeRequired)
            {
                //it is on the different thread, so use the Invoke method
                setMessageCallBack d = new setMessageCallBack(logMessageCallBack);
                app.Invoke(d, new object[] { message });
            }
            else
            {
                logMessageCallBack(message);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// log message
 /// </summary>
 /// <param name="message"></param>
 private void logMessage(string message)
 {
     if (txtLogger.InvokeRequired)
     {
         //it is on the different thread, so use the Invoke method
         setMessageCallBack d = new setMessageCallBack(logMessageCallBack);
         app.Invoke(d, new object[] { message });
     }
     else
     {
         logMessageCallBack(message);
     }
 }