private void FireEvent(object parameter, bool appendline = false) { if (!appendline) { StreamWasWritten?.Invoke(this, parameter.ToString()); } else { StreamWasWritten?.Invoke(this, $"{parameter}\n"); } }
private void FireEventLine(string format, params object[] pars) { var str = string.Format(format, pars) + "\n"; StreamWasWritten?.Invoke(this, str); }