예제 #1
0
 private void Log(string message)
 {
     if (app.Created)
     {
         app.Invoke(app.Log, new object[] { (string)message });
     }
 }
예제 #2
0
        private static void P_OutputDataReceived(object sender, DataReceivedEventArgs e)
        {
            if (logger != null && logger.Created && e != null && e.Data != null && e.Data != "")
            {
                var str = e.Data.Split('\n');

                for (var i = 0; i < str.Length; i++)
                {
                    logger.Invoke(logger.Info, new object[] { str[i] + "\r\n" });
                }
            }
        }