Esempio n. 1
0
 ///---------------------------------------------------------------------
 #region Logger
 public void Register(PersonalLogger logger)
 {
     if (loggerManager == null)
     {
         loggerManager = new PersonalLoggerManager();
     }
     loggerManager.Register(logger);
 }
Esempio n. 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;
                }
            }
        }
Esempio n. 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
            });
        }
Esempio n. 4
0
 ///---------------------------------------------------------------------
 public void Unregister(PersonalLogger logger)
 {
     loggerManager.Unregister(logger);
 }