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

            StreamWasWritten?.Invoke(this, str);
        }