public void Setup() { LoggerEntry ent = new LoggerEntry("ModelID", "ID", "Process", "FullPN"); _unitUnderTest = new LoggerEventArgs("orgFullPN", ent); }
/// <summary> /// Event when the logger entry is changed. /// </summary> /// <param name="o">LoggerManager.</param> /// <param name="e">LoggerEventArgs</param> private void LoggerManager_LoggerChangedEvent(object o, LoggerEventArgs e) { if (m_loggerWin != null) m_loggerWin.LoggerChanged(e.OriginalFullPN, e.Entry); foreach (TraceWindow w in m_winList) w.LoggerChanged(e.OriginalFullPN, e.Entry); }
/// <summary> /// Event when the logger entry is deleted. /// </summary> /// <param name="o">LoggerManager.</param> /// <param name="e">LoggerEventArgs</param> public void LoggerManager_LoggerDeleteEvent(object o, LoggerEventArgs e) { if (m_loggerWin != null) m_loggerWin.LoggerDeleted(e.Entry); LoggerEntry entry = e.Entry; TagData tag = new TagData(entry.ModelID, entry.ID, entry.Type, entry.FullPN, true); tag.isLoaded = e.Entry.IsLoaded; tag.FileName = e.Entry.FileName; RemoveFromEntry(tag); }
/// <summary> /// Event when the logger entry is added. /// </summary> /// <param name="o">LoggerManager.</param> /// <param name="e">LoggerEventArgs</param> public void LoggerManager_LoggerAddEvent(object o, LoggerEventArgs e) { LoggerEntry entry = e.Entry; if (m_loggerWin != null) m_loggerWin.LoggerAdd(entry); EcellObject obj = m_dManager.GetEcellObject(entry.ModelID, entry.ID, entry.Type); bool isContinue = true; if (obj != null) { foreach (EcellData d in obj.Value) { if (d.Name.Equals(EcellProcess.ISCONTINUOUS)) { isContinue = (int)d.Value != 0; break; } } } TagData tag = new TagData(entry.ModelID, entry.ID, entry.Type, entry.FullPN, isContinue); tag.isLoaded = e.Entry.IsLoaded; tag.FileName = e.Entry.FileName; AddToEntry(entry, tag); }
void _unitUnderTest_LoggerDeleteEvent(object o, LoggerEventArgs e) { }
void _unitUnderTest_LoggerChangedEvent(object o, LoggerEventArgs e) { }