Пример #1
0
        private static void Main()
        {
            FileManager      manager      = new FileManager();
            FileReaderWriter readerWriter = new FileReaderWriter();

            manager.CreateFile(readerWriter.PATH_LOG_ORDERS);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FormMain());
        }
Пример #2
0
        public FormMain()
        {
            InitializeComponent();

            readerWriter = new FileReaderWriter();
            beverageRepo = new BeverageRepo();
            var beverages = beverageRepo.GetBeverages();

            _cart = ShoppingCart.GetShoppingCart();
            GenerateControlsForBeverages(beverages);
        }