Beispiel #1
0
        private void PopErr(object sender, DateTime time, Exception e)
        {
            if (sender != null)
            {
                CM.WriteErrLog(sender.GetType().Name, time, e);
            }

            if (OnErr != null)
            {
                OnErr(sender, time, e);
            }
        }
Beispiel #2
0
        private void PopMsg(object sender, DateTime time, string message)
        {
            if (sender != null)
            {
                CM.WriteRunLog(sender.GetType().Name, time, message);
            }

            if (OnMsg != null)
            {
                OnMsg(sender, time, message);
            }
        }