コード例 #1
0
 /// <summary>
 /// Handles the ServerLog Event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void Ftp_ServerLogEvent(object sender, ServerLogArgs args)
 {
     ServerLog.Dispatcher.Invoke(new Action(() =>
     {
         ServerLog.AppendText(args.Message + Environment.NewLine);
         ServerLog.Focus();
         ServerLog.CaretIndex = ServerLog.Text.Length;
         ServerLog.ScrollToEnd();
     }));
 }