Пример #1
0
        public QubeLog GetLog(Object key)
        {
            String sKey = key.ToString();
            if (!Logs.ContainsKey(sKey))
            {
                Logs[sKey] = new QubeLog()
                {
                    Parent = this,
                    Date = LogDate,
                    Tag = sKey.ToString(),
                };
                Logs[sKey].Refresh();
            }

            return Logs[sKey];
        }
Пример #2
0
        public QubeLog AddLog(Object key, String filename)
        {
            String sKey = key.ToString();
            if (!Logs.ContainsKey(sKey))
            {
                Logs[sKey] = new QubeLog()
                {
                    Parent = this,
                    Date = LogDate,
                    Tag = sKey.ToString(),
                };
                Logs[sKey].SetFilename(filename);
            }

            return Logs[sKey];
        }