Exemplo n.º 1
0
        public void Cleanup()
        {
            if (Status == 104)
            {
                _result = OfcActionResult.Lzma;
                return;
            }
            if (Status == 211)
            {
                _result = OfcActionResult.Done;
                return;
            }

            if (Status > 1 && File.Exists(_dataPath + ActionUtils.TempFileExtention))
            {
                File.Delete(_dataPath + ActionUtils.TempFileExtention);
            }
            if (Status >= 100 && Status < 200 && File.Exists(_lzmaPath + ActionUtils.TempFileExtention))
            {
                File.Delete(_lzmaPath + ActionUtils.TempFileExtention);
            }
            if (Status >= 200 && Status < 300 && File.Exists(_metaPath + ActionUtils.TempFileExtention))
            {
                File.Delete(_metaPath + ActionUtils.TempFileExtention);
            }
        }
Exemplo n.º 2
0
        internal static string GetSymbolForResult(this OfcActionResult result)
        {
            switch (result)
            {
            case OfcActionResult.Done:
                return(" ");

            case OfcActionResult.Unkown:
                return("?");

            case OfcActionResult.Fatal:
                return("F");

            case OfcActionResult.Lzma:
                return(".");

            default:
                return("E");
            }
        }