mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-07 15:36:20 +00:00
Minor refactoring
This commit is contained in:
parent
b719a14d29
commit
5c815e951e
5 changed files with 32 additions and 35 deletions
|
|
@ -36,7 +36,7 @@ namespace MapControl
|
|||
return item is MapItem;
|
||||
}
|
||||
|
||||
public void SelectItems(Func<object, bool> predicate)
|
||||
public void SelectItems(Predicate<object> predicate)
|
||||
{
|
||||
if (SelectionMode == SelectionMode.Single)
|
||||
{
|
||||
|
|
@ -61,7 +61,7 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
|
||||
public void SelectItemsByLocation(Func<Location, bool> predicate)
|
||||
public void SelectItemsByLocation(Predicate<Location> predicate)
|
||||
{
|
||||
SelectItems(item =>
|
||||
{
|
||||
|
|
@ -70,7 +70,7 @@ namespace MapControl
|
|||
});
|
||||
}
|
||||
|
||||
public void SelectItemsByPosition(Func<Point, bool> predicate)
|
||||
public void SelectItemsByPosition(Predicate<Point> predicate)
|
||||
{
|
||||
SelectItems(item =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue