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); }
private void ShowStatusForm(bool show) { if (statusForm == null) { statusForm = new StatusForm(Data, this); foreach (string logEntry in log) { statusForm.AddLogEntry(logEntry); } } statusForm.Visible = show; }
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); }
private void ShowStatusForm(bool show) { if (statusForm == null) { statusForm = new StatusForm(Data, this); foreach (string logEntry in log) { statusForm.AddLogEntry(logEntry); } } statusForm.Visible = show; }