Exemplo n.º 1
0
        public void AddRestuarant()
        {
            Console.Clear();
            // passes along input to library
            string message = "|-------------------------|\n" +
                             "|Name:                    |\n" +
                             "|Adress:                  |\n";

            Console.Write(message);

            List <string> inputs = new List <string>();

            // all restuarants require a name, address and rating
            int[] i_coord_x = { 7, 9 };
            int[] i_coord_y = { 1, 2 };
            for (int i = 0; i < 2; i++)
            {
                Console.SetCursorPosition(i_coord_x[i], i_coord_y[i]);
                inputs.Add(Console.ReadLine());                 // verify correct inputs later
            }
            mh.AddRestuarant(inputs[0], inputs[1]);
        }