コード例 #1
0
ファイル: Control.cs プロジェクト: CarverLab/Oyster
 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);
 }
コード例 #2
0
ファイル: Control.cs プロジェクト: CarverLab/Oyster
 internal virtual void OnMessageReceived(CommandEventArgs e)
 {
     if (MessageReceived != null)
         MessageReceived(this,e);
 }