Ejemplo n.º 1
0
        static void Run(string[] args)
        {
            if (args.Length != 2 || args.Intersect(options).Count() != 1)
            {
                ShowUsage();
                return;
            }

            string fileName = args[1];
            MySafe safe     = InitProtection();

            switch (args[0])
            {
            case writeOption:
                Write(safe, fileName);
                break;

            case readOption:
                Read(safe, fileName);
                break;

            default:
                ShowUsage();
                break;
            }
        }
Ejemplo n.º 2
0
 private static void Write(MySafe safe, string fileName)
 {
     throw new NotImplementedException();
 }