예제 #1
0
        private static Command GetAuthenticationCommand()
        {
            var container = new Command();

            container.Handlers.Add(Resources.CommandLogIn, new LogInHandler());
            container.Handlers.Add(Resources.CommandSignUp, new SignUpHandler());
            container.Handlers.Add(Resources.CommandHelp, new HelpHandler());

            return container;
        }
예제 #2
0
        private static Command GetLoggedInCommand()
        {
            var container = new Command();

            container.Handlers.Add(Resources.CommandLogOut, new LogOutHandler());
            container.Handlers.Add(Resources.CommandHelp, new HelpHandler());
            container.Handlers.Add(Resources.CommandFind, new FindHandler());
            container.Handlers.Add(Resources.CommandSend, new SendMessageHandler());
            container.Handlers.Add(Resources.CommandExport, new ExportToCvsHandler());
            container.Handlers.Add(Resources.CommandFriends, new FriendsHandler());
            container.Handlers.Add(Resources.CommandPath, new PathSearchHandler());
            var exitHandler = new ExitHandler();
            exitHandler.Exited += exitMethod;
            container.Handlers.Add(Resources.CommandExit, exitHandler);

            return container;
        }