Ejemplo n.º 1
0
        private static void PerformAction(int num)
        {
            switch (num)
            {
            case 1:
                var rest1 = new GenerateQuick(Program.user1);
                rest1.PerformAction(1);
                break;

            case 2:
                var rest2 = new GenerateRandom();
                rest2.ShowResult();
                break;

            case 3:
                var rest3 = new GeneratePassword();
                rest3.ShowResult();
                break;

            case 4:
                ExitApp();
                break;

            default:
                Thread.Sleep(2000);
                System.Console.WriteLine("You've given wrong number...");
                break;
            }
        }