Esempio n. 1
0
        public MeasuringSimpleTask(string path, MethodSimple method, string method_path)
        {
            Created       = true;
            Path          = path;
            SrcMethodPath = method_path;
            MemoryStream ms = new MemoryStream();
            BinaryWriter bw = new BinaryWriter(ms);

            method.Save(bw);
            bw.Flush();

            ms.Seek(0, SeekOrigin.Begin);
            BinaryReader br = new BinaryReader(ms);

            Data = new MethodSimple(br);

            Data.ClearProbRecords();

            Data.MethodMovedTo(SrcMethodPath, Path);
            br.Close();
            bw.Close();
            try { ms.Close(); }
            catch { }
            try { ms.Dispose(); }
            catch { }
        }