Пример #1
0
 public void Setup()
 {
     LoggerEntry ent = new LoggerEntry("ModelID", "ID", "Process", "FullPN");
     _unitUnderTest = new LoggerEventArgs("orgFullPN", ent);
 }
Пример #2
0
        /// <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);
        }
Пример #3
0
        /// <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);
        }
Пример #4
0
        /// <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);
        }
Пример #5
0
 void _unitUnderTest_LoggerDeleteEvent(object o, LoggerEventArgs e)
 {
 }
Пример #6
0
 void _unitUnderTest_LoggerChangedEvent(object o, LoggerEventArgs e)
 {
 }