Esempio n. 1
0
 protected virtual void OnNewMessageArrived(NewMessageEventArg e)
 {
     if (NewMessageArrived != null)
     {
         NewMessageArrived(this, e);
     }
 }
        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;
        }
Esempio n. 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;
 }
Esempio n. 4
0
 protected virtual void OnNewMessageArrived(NewMessageEventArg e)
 {
     if (NewMessageArrived != null)
     {
         NewMessageArrived(this, e);
     }
 }
 /// <summary>
 /// Log the message of FTPClient.
 /// </summary>
 void client_NewMessageArrived(object sender, NewMessageEventArg e)
 {
     this.Invoke(new EventHandler <NewMessageEventArg>(
                     client_NewMessageArrivedHandler), sender, e);
 }