Beispiel #1
0
 ///---------------------------------------------------------------------
 #region Logger
 public void Register(PersonalLogger logger)
 {
     if (loggerManager == null)
     {
         loggerManager = new PersonalLoggerManager();
     }
     loggerManager.Register(logger);
 }
Beispiel #2
0
        ///---------------------------------------------------------------------
        public void Unregister(PersonalLogger logger)
        {
            if (logger == null)
            {
                return;
            }

            for (int i = 0; i < m_loggers.Count; i++)
            {
                if (m_loggers[i].logger == logger)
                {
                    m_loggers.RemoveAt(i);
                    return;
                }
            }
        }
Beispiel #3
0
        ///---------------------------------------------------------------------
        #region Registering
        public void Register(PersonalLogger box)
        {
            if (box == null)
            {
                return;
            }

            for (int i = 0; i < m_loggers.Count; i++)
            {
                if (m_loggers[i].logger == box)
                {
                    return;
                }
            }

            m_loggers.Add(new RegisteredLogger()
            {
                logger = box, show = false
            });
        }
Beispiel #4
0
 ///---------------------------------------------------------------------
 public void Unregister(PersonalLogger logger)
 {
     loggerManager.Unregister(logger);
 }