Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class VendingMachine
- {
- private Stack[,] content = new Stack[5,6];
- public VendingMachine()
- {
- fillUpWares();
- run();
- }
- private void firstTimeFillUp()
- {
- Items myItems = new Items();
- int xcount = 0;
- int ycount = 0;
- foreach (Ware item in myItems.MyWares)
- {
- if(xcount > 4)
- {
- xcount = 0;
- ycount++;
- }
- if(ycount < 6)
- {
- Stack newStack = new Stack(10, item);
- content[xcount, ycount] = newStack;
- }
- }
- }
- private void fillUpWares()
- {
- }
- private void run()
- {
- while (true)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement