public int TotalCostWindow(Grid grid) { List <Window> windowList = windowHandler.GetList(grid); var total = 0; foreach (var item in windowList) { total += this.GetWindowCost(); } return(total); }
public void DrawWindows(Graphics graphic) { if (WINDOW_HANDLER == null) { this.WINDOW_HANDLER = new WindowHandler(gridRepository); } foreach (Window window in WINDOW_HANDLER.GetList(this)) { Window windowToDraw = WINDOW_HANDLER.GetWindow(window); windowToDraw.Draw(graphic); } }