public void ChangeAllLocationItemStates(LocationItem.Mode newState) { foreach (LocationItem item in locations_canvas.Children) { item.State = newState; } LocationItemStatesChanged?.Invoke(null, (int)newState); }
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); }