예제 #1
0
        protected virtual void OnStatusChange(CommandInterfaceStatusChangeEventArgs e)
        {
            var handler = StatusChange;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #2
0
        void m_Connection_StatusChange(object sender, ConnectionStatusChangeEventArgs e)
        {
            // Log.WriteLog(Log.LogLevelType.Comm, "CommandInterface::StatusChange(): " +
            //     "[" + m_Connection.Address + ":" + m_Connection.Port + "] " +
            //      "State Change to " + e.State.ToString().ToUpper());

            var StatusChangeArgs = new CommandInterfaceStatusChangeEventArgs();

            StatusChangeArgs.Status = e.State;

            OnStatusChange(StatusChangeArgs);
        }