Example #1
0
            public VTResult ClearLog()
            {
                VTResult res = VTResult.Success;

                Clear();

                CommonProc.DeleteFiles(Path.GetDirectoryName(Owner.FileName), Path.GetFileName(Owner.FileName) + "*" + ElementInitInfoLogExtention);
                CommonProc.DeleteFiles(Path.GetDirectoryName(Owner.FileName), Path.GetFileName(Owner.FileName) + "*" + ElementResultLogExtention);

                return(res);
            }
Example #2
0
            public VTResult Load()
            {
                VTResult res = VTResult.Success;

                Clear();

                int i = 0;

                while (File.Exists(Owner.GetElementInitInfoFileName(i)))
                {
                    VTestElement element = new VTestElement(Owner);

                    if (element.Load(i) == VTResult.Success)
                    {
                        Add(element);
                    }

                    i++;
                }

                return(res);
            }