Пример #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);
 }