static void Main(string[] args)
        {
            stockMgr = new StockManager();
            trnUI    = new TransactionUI(stockMgr);

            int option = DisplayMenu();

            while (option != 7)
            {
                switch (option)
                {
                case 1:
                    AddToStock();
                    break;

                case 2:
                    TakeFromStock();
                    break;

                case 3:
                    InventoryReport();
                    break;

                case 4:
                    FinancialReport();
                    break;

                case 5:
                    TransactionLog();
                    break;

                case 6:
                    PersonalUsage();
                    break;
                }
                option = DisplayMenu();
            }
        }
Exemple #2
0
 public TransactionUI(StockManager sm)
 {
     this.stockMgr = sm;
 }