예제 #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);
        }