Exemple #1
0
        /// <summary>
        /// Handles the timer event on the thread pool thread by marshalling
        /// a call to the UI thread.
        /// </summary>
        /// <param name="state"></param>
        private void OnTimer(object state)
        {
            ServiceState serviceState = service.State;
            string       status       = service.DisplayStatus;

            ApplicationHost.Invoke(this, onUITimer, new object[] { serviceState, status });
        }
Exemple #2
0
 /// <summary>
 /// Sets the status text to the message passed.
 /// </summary>
 /// <param name="message">The message.</param>
 public void SetStatus(string message)
 {
     ApplicationHost.Invoke(this, onStatus, new object[] { message });
 }
Exemple #3
0
 /// <summary>
 /// Writes the message passed to a log area of the user interface.
 /// </summary>
 /// <param name="message">The message.</param>
 public void Log(string message)
 {
     ApplicationHost.Invoke(this, onLog, new object[] { message });
 }
Exemple #4
0
 /// <summary>
 /// Called by the NetTraceSink for the set of received packets.
 /// </summary>
 /// <param name="packets">The received trace packets.</param>
 private void OnTrace(NetTracePacket[] packets)
 {
     ApplicationHost.Invoke(this, onTraceUI, new object[] { packets });
 }