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

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

            while (true)
            {
                studentSystem.ParseCommand();
            }
        }
Esempio 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);
        }
    }
Esempio n. 5
0
    static void Main()
    {
        StudentSystem studentSystem = new StudentSystem();
        string        command;

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

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

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

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

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

        //string input = Console.ReadLine();
        while (true)
        {
            studentSystem.ParseCommand();
            // input = Console.ReadLine();
        }
    }
Esempio 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();
        }
    }
Esempio 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();
        }
    }
Esempio n. 13
0
        static void Main()
        {
            IStudentSystem studentSystem = new StudentSystem();

            while (true)
            {
                System.Console.Write(studentSystem.ParseCommand());
                if (studentSystem.Exit)
                {
                    break;
                }
            }
        }
Esempio 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();
        }
    }
Esempio 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);
        }
    }
Esempio 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);
        }
    }
Esempio 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();
        }