Example #1
0
        static void Main(string[] args)
        {
            IStregsystem          stregsystem = new Stregsystem();
            IStregsystemUI        ui          = new StregsystemCLI(stregsystem);
            StregsystemController sc          = new StregsystemController(ui, stregsystem);

            ui.Start();
        }
Example #2
0
        static void Main(string[] args)
        {
            // In the start all files will be loaded and "database" lists will be pupulated
            File.WriteAllText(@"../../transactions.csv", string.Empty);
            ReadFromCsv    csvReader = new ReadFromCsv();
            StregsystemCLI ui        = new StregsystemCLI();

            csvReader.CreateUserList("../../users.csv");
            csvReader.CreateProductList("../../products.csv");
            csvReader.CreateTransactionList();
            //We will now start the interface
            ui.Start();
        }
Example #3
0
 static void Main(string[] args)
 {
     try {
         if (StregsystemLoader.Load())
         {
             IStregsystemUI ui = new StregsystemCLI();
             ui.Start();
         }
         else
         {
             throw new FileLoadException();
         }
     } catch (FileLoadException) {
         Console.WriteLine("Kunne ikke hente indhold.");
     }
 }