private void m_conn_MessageReceived(object sender, CommandEventArgs e) { if (m_bReceivingFileList) { Command cmd = e.Peek; if (cmd.Params != null) { if (cmd.VerbString == "LST") { if (cmd.Params[0] == "********") { m_bReceivingFileList = false; cmd = e.NextCommand(); m_EventReceivedFile.Set(); // notify the calling fcn that a file has come return; } m_EventReceivedFile.Set(); // notify the calling fcn that a file has come } } } OnMessageReceived(e); }
internal virtual void OnMessageReceived(CommandEventArgs e) { if (MessageReceived != null) MessageReceived(this,e); }