예제 #1
0
        public void ChangeAllLocationItemStates(LocationItem.Mode newState)
        {
            foreach (LocationItem item in locations_canvas.Children)
            {
                item.State = newState;
            }

            LocationItemStatesChanged?.Invoke(null, (int)newState);
        }
예제 #2
0
 public void ChangeLocationItemState(string location, LocationItem.Mode newState)
 {
     foreach (LocationItem item in locations_canvas.Children)
     {
         if (item.Location.Contains(location))
         {
             item.State = newState;
         }
     }
     LocationItemStatesChanged?.Invoke(null, -1);
 }