示例#1
0
        private static void NewClientLog(string message)
        {
            ClientLogArgs args = new ClientLogArgs {
                Message = message
            };

            OnNewClientLog(args);
        }
示例#2
0
 private void FTPClient_ClientLogEvent(object sender, ClientLogArgs args)
 {
     ClientLog.Dispatcher.Invoke(new Action(() =>
     {
         ClientLog.AppendText(args.Message + Environment.NewLine);
         ClientLog.Focus();
         ClientLog.CaretIndex = ClientLog.Text.Length;
         ClientLog.ScrollToEnd();
     }));
 }
示例#3
0
 protected static void OnNewClientLog(ClientLogArgs args)
 {
     ClientLogEvent.Invoke(null, args);
 }