protected virtual void OnNewMessageArrived(NewMessageEventArg e)
 {
     if (NewMessageArrived != null)
     {
         NewMessageArrived(this, e);
     }
 }
Beispiel #2
0
        void client_NewMessageArrivedHandler(object sender, NewMessageEventArg e)
        {
            string log = string.Format("{0} {1}",
                                       DateTime.Now, e.NewMessage);

            this.lstLog.Items.Add(log);
            this.lstLog.SelectedIndex = this.lstLog.Items.Count - 1;
        }
Beispiel #3
0
 /// <summary>
 /// 记录 FTPClient的消息.
 /// </summary>
 void client_NewMessageArrived(object sender, NewMessageEventArg e)
 {
     string log = string.Format("{0} {1}",
          DateTime.Now, e.NewMessage);
     this.lstLog.Items.Add(log);
     this.lstLog.SelectedIndex = this.lstLog.Items.Count - 1;
 }
Beispiel #4
0
 /// <summary>
 /// Log the message of FTPClient.
 /// </summary>
 void client_NewMessageArrived(object sender, NewMessageEventArg e)
 {
     this.Invoke(new EventHandler <NewMessageEventArg>(
                     client_NewMessageArrivedHandler), sender, e);
 }
 protected virtual void OnNewMessageArrived(NewMessageEventArg e)
 {
     if (NewMessageArrived != null)
     {
         NewMessageArrived(this, e);
     }
 }