Rename Criteria -> CreateCriteria and make into method.

This commit is contained in:
smoogipooo 2017-03-18 02:11:14 +09:00
parent cd30958086
commit bcaf12e3d9

View File

@ -37,7 +37,7 @@ namespace osu.Game.Screens.Select
if (sort != value)
{
sort = value;
FilterChanged?.Invoke(Criteria);
FilterChanged?.Invoke(CreateCriteria());
}
}
}
@ -51,12 +51,12 @@ namespace osu.Game.Screens.Select
if (group != value)
{
group = value;
FilterChanged?.Invoke(Criteria);
FilterChanged?.Invoke(CreateCriteria());
}
}
}
public FilterCriteria Criteria => new FilterCriteria
public FilterCriteria CreateCriteria() => new FilterCriteria
{
Group = group,
Sort = sort,
@ -96,7 +96,7 @@ namespace osu.Game.Screens.Select
OnChange = (sender, newText) =>
{
if (newText)
FilterChanged?.Invoke(Criteria);
FilterChanged?.Invoke(CreateCriteria());
},
Exit = () => Exit?.Invoke(),
},