Example #1
0
        public void ReadCsv()
        {
            string path = "D:/Schule/4.Klasse/POS/Shelving_System/Shelving_System/waren.csv";

            string[] lines = System.IO.File.ReadAllLines(path);
            foreach (string line in lines)
            {
                string[] items = line.Split(";");
                Store(items);
            }
            shelf.Show();
            Console.WriteLine("\n");
            Console.WriteLine($"The workload is: {shelf.Workload()}%");
            Console.WriteLine("--------------------------------------");
        }
Example #2
0
        static void Main(string[] args)
        {
            Shelf shelf = new Shelf(6, 5);

            Book  book = new Book(1, 20, 50, 100);
            Tools tool = new Tools(2)
            {
                Weight = 3
            };

            shelf.Store(2, 3, book);
            shelf.Store(4, 1, tool);
            shelf.Show();
            Console.WriteLine("\n");
            Console.WriteLine($"The workload is: {shelf.Workload()}%");
            Console.WriteLine("--------------------------------------");

            Program program = new Program();

            program.Test();
        }