Esempio n. 1
0
    public static LogBase CreateLogInstanceFromFile
        (string filename, LogFormat format)
    {
        LogBase logInstance = LogBase.CreateLogInstance(format);

        logInstance.ReadFile(filename);
        return(logInstance);
    }
Esempio n. 2
0
    private void GetSelectedSlices()
    {
        if (this.totalLog == null)
        {
            return;
        }

        this.resultLog = LogBase.CreateLogInstance(this.totalLog.Format);

        for (int i = 0; i < this.slicesArray.Count; i++)
        {
            TreeIter iter;
            TreePath path = new TreePath(String.Format("{0}", i));

            if (this.slicesStore.GetIter(out iter, path))
            {
                bool selected = (bool)this.slicesStore.GetValue(iter, 1);
                if (selected)
                {
                    this.resultLog.Append((LogBase)this.slicesArray[i]);
                }
            }
        }
    }