Пример #1
0
        static public void AddSchedulerLogEntry(string showName, string logEntry)
        {
            if (log == null)
            {
                log = new List <string>();
            }
            string logString = string.Format("{0} ( {1} ) {2}", DateTime.Now.ToString("G"), showName, logEntry);

            Logging.Info("(" + showName + ") " + logEntry);
            //Logging.Log(NLog.LogLevel.FromString("Scheduler"), logEntry);
            statusForm.AddLogEntry(logString);
        }
Пример #2
0
 private void ShowStatusForm(bool show)
 {
     if (statusForm == null)
     {
         statusForm = new StatusForm(Data, this);
         foreach (string logEntry in log)
         {
             statusForm.AddLogEntry(logEntry);
         }
     }
     statusForm.Visible = show;
 }
Пример #3
0
        static public void AddSchedulerLogEntry(string showName, string logEntry)
        {
            if (log == null)
            {
                log = new List <string>();
            }
            string logString = /*DateTime.Now.ToLongDateString() + " @ " + */ DateTime.Now.ToLongTimeString() + " (" + showName + ") " + logEntry;

            Logging.Info("(" + showName + ") " + logEntry);
            //Logging.Log(NLog.LogLevel.FromString("Scheduler"), logEntry);
            statusForm.AddLogEntry(logString);
        }
Пример #4
0
 private void ShowStatusForm(bool show)
 {
     if (statusForm == null)
     {
         statusForm = new StatusForm(Data, this);
         foreach (string logEntry in log)
         {
             statusForm.AddLogEntry(logEntry);
         }
     }
     statusForm.Visible = show;
 }