public static void Main(string[] args)
        {
            StudentSystem studentSystem = new StudentSystem();

            while (true)
            {
                studentSystem.ParseCommand();
            }
        }
Ejemplo n.º 2
0
        public static void Main()
        {
            var studentSystem = new StudentSystem();

            while (true)
            {
                studentSystem.ParseCommand();
            }
        }
Ejemplo n.º 3
0
        private static void Main()
        {
            StudentSystem studentSystem = new StudentSystem();

            while (true)
            {
                studentSystem.ParseCommand();
            }
        }
    static void Main()
    {
        var    studentSystem = new StudentSystem();
        string input;

        while ((input = Console.ReadLine()) != "Exit")
        {
            studentSystem.ParseCommand(input, Console.WriteLine);
        }
    }
Ejemplo n.º 5
0
    static void Main()
    {
        StudentSystem studentSystem = new StudentSystem();
        string        command;

        while ((command = Console.ReadLine()) != "Exit")
        {
            studentSystem.ParseCommand(command, Console.WriteLine);
        }
    }
Ejemplo n.º 6
0
    static void Main()
    {
        var    studentSystem = new StudentSystem();
        string commnad;

        while ((commnad = Console.ReadLine()) != "Exit")
        {
            studentSystem.ParseCommand(commnad);
        }
    }
Ejemplo n.º 7
0
    static void Main(string[] args)
    {
        StudentSystem studentSystem = new StudentSystem();
        string        intput        = "";

        while ((intput = Console.ReadLine()) != "Exit")
        {
            studentSystem.ParseCommand(intput);
        }
    }
Ejemplo n.º 8
0
        static void Main(string[] args)
        {
            string command;
            var    studentSystem = new StudentSystem();

            while ((command = Console.ReadLine()) != "Exit")
            {
                studentSystem.ParseCommand(command);
            }
        }
Ejemplo n.º 9
0
    static void Main(string[] args)
    {
        StudentSystem system = new StudentSystem();

        while (true)
        {
            string command = Console.ReadLine();
            system.ParseCommand(command);
        }
    }
Ejemplo n.º 10
0
    static void Main(string[] args)
    {
        StudentSystem studentSystem = new StudentSystem();

        //string input = Console.ReadLine();
        while (true)
        {
            studentSystem.ParseCommand();
            // input = Console.ReadLine();
        }
    }
Ejemplo n.º 11
0
    static void Main(string[] args)
    {
        var    studentSystem = new StudentSystem();
        string command       = Console.ReadLine();

        while (command != "End")
        {
            studentSystem.ParseCommand(command, Console.WriteLine);

            command = Console.ReadLine();
        }
    }
Ejemplo n.º 12
0
    static void Main()
    {
        StudentSystem studentSystem = new StudentSystem();

        string[] args = Console.ReadLine()?.Split();

        while (args[0] != "Exit")
        {
            studentSystem.ParseCommand(args);
            args = Console.ReadLine()?.Split();
        }
    }
Ejemplo n.º 13
0
        static void Main()
        {
            IStudentSystem studentSystem = new StudentSystem();

            while (true)
            {
                System.Console.Write(studentSystem.ParseCommand());
                if (studentSystem.Exit)
                {
                    break;
                }
            }
        }
Ejemplo n.º 14
0
    public static void Main()
    {
        var command = Console.ReadLine();

        var studentSystem = new StudentSystem();

        while (command != "Exit")
        {
            studentSystem.ParseCommand(command, Console.WriteLine);

            command = Console.ReadLine();
        }
    }
Ejemplo n.º 15
0
    public static void Main()
    {
        var studentSystem = new StudentSystem();

        while (true)
        {
            string command = Console.ReadLine();
            if (command == "Exit")
            {
                break;
            }

            studentSystem.ParseCommand(command, Console.WriteLine);
        }
    }
Ejemplo n.º 16
0
    static void Main()
    {
        var studentSystem = new StudentSystem();

        while (true)
        {
            var commandArgs = Console.ReadLine().Split();

            if (commandArgs[0] == "Exit")
            {
                break;
            }

            studentSystem.ParseCommand(commandArgs);
        }
    }
Ejemplo n.º 17
0
    static void Main()
    {
        // 100/100 - полезен пример!!!

        // Стар вариант за рефакториране:
        //StudentSystem studentSystem = new StudentSystem();
        //while (true)
        //{
        //    studentSystem.ParseCommand();
        //}

        // Нов вариант:
        var    studentSystem = new StudentSystem();
        string command;

        while ((command = Console.ReadLine()) != "Exit")
        {
            studentSystem.ParseCommand(command, Console.WriteLine); // !!!!
        }
    }
        public static void Main()
        {
            var studentSystem = new StudentSystem();

            studentSystem.ParseCommand();
        }