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]; }
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]; }