예제 #1
0
        public int TotalCostWindow(Grid grid)
        {
            List <Window> windowList = windowHandler.GetList(grid);
            var           total      = 0;

            foreach (var item in windowList)
            {
                total += this.GetWindowCost();
            }
            return(total);
        }
예제 #2
0
 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);
     }
 }