private static void NewClientLog(string message) { ClientLogArgs args = new ClientLogArgs { Message = message }; OnNewClientLog(args); }
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(); })); }
protected static void OnNewClientLog(ClientLogArgs args) { ClientLogEvent.Invoke(null, args); }