Ejemplo n.º 1
0
        /******************************************************************************/

        public void addSystemMessage(string message, oadr2b_ven.UserControls.Log.WebLogView.eWebLogMessageStatus status)
        {
            MethodInvoker mi = new MethodInvoker(delegate
            {
                lock (m_webLogView)
                {
                    m_webLogView.logMessage(message, status);
                }
            });

            // BeginInvoke only needs to be called if we're tyring to update the UI from
            // a thread that did not create it
            if (this.InvokeRequired)
            {
                this.BeginInvoke(mi);
            }
            else
            {
                mi.Invoke();
            }
        }
Ejemplo n.º 2
0
        /**********************************************************/

        public void logSystemMessage(string message, oadr2b_ven.UserControls.Log.WebLogView.eWebLogMessageStatus status)
        {
            ucLog1.addSystemMessage(message, status);
        }