コード例 #1
0
 public void Setup()
 {
     LoggerEntry ent = new LoggerEntry("ModelID", "ID", "Process", "FullPN");
     _unitUnderTest = new LoggerEventArgs("orgFullPN", ent);
 }
コード例 #2
0
ファイル: TracerWindow.cs プロジェクト: ecell/ecell3-ide
        /// <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
ファイル: TracerWindow.cs プロジェクト: ecell/ecell3-ide
        /// <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
ファイル: TracerWindow.cs プロジェクト: ecell/ecell3-ide
        /// <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
ファイル: TestLoggerManager.cs プロジェクト: ecell/ecell3-ide
 void _unitUnderTest_LoggerDeleteEvent(object o, LoggerEventArgs e)
 {
 }
コード例 #6
0
ファイル: TestLoggerManager.cs プロジェクト: ecell/ecell3-ide
 void _unitUnderTest_LoggerChangedEvent(object o, LoggerEventArgs e)
 {
 }