示例#1
0
    public static LogBase CreateLogInstanceFromFile
        (string filename, LogFormat format)
    {
        LogBase logInstance = LogBase.CreateLogInstance(format);

        logInstance.ReadFile(filename);
        return(logInstance);
    }
示例#2
0
文件: gui.cs 项目: fthomas/drohne
    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]);
                }
            }
        }
    }