Rename variables in line with standards

This commit is contained in:
Dean Herbert 2021-06-28 15:23:19 +09:00
parent 3d19364a71
commit 88c6143aae
3 changed files with 9 additions and 9 deletions

View File

@ -221,11 +221,11 @@ namespace osu.Game.Tournament.Screens.Editors
private void load(RulesetStore rulesets)
{
beatmapId.Value = Model.ID;
beatmapId.BindValueChanged(idInt =>
beatmapId.BindValueChanged(id =>
{
Model.ID = idInt.NewValue ?? 0;
Model.ID = id.NewValue ?? 0;
if (idInt.NewValue != idInt.OldValue)
if (id.NewValue != id.OldValue)
Model.BeatmapInfo = null;
if (Model.BeatmapInfo != null)

View File

@ -229,11 +229,11 @@ namespace osu.Game.Tournament.Screens.Editors
private void load(RulesetStore rulesets)
{
beatmapId.Value = Model.ID;
beatmapId.BindValueChanged(idInt =>
beatmapId.BindValueChanged(id =>
{
Model.ID = idInt.NewValue ?? 0;
Model.ID = id.NewValue ?? 0;
if (idInt.NewValue != idInt.OldValue)
if (id.NewValue != id.OldValue)
Model.BeatmapInfo = null;
if (Model.BeatmapInfo != null)

View File

@ -279,11 +279,11 @@ namespace osu.Game.Tournament.Screens.Editors
private void load()
{
userId.Value = user.Id;
userId.BindValueChanged(idInt =>
userId.BindValueChanged(id =>
{
user.Id = idInt.NewValue ?? 0;
user.Id = id.NewValue ?? 0;
if (idInt.NewValue != idInt.OldValue)
if (id.NewValue != id.OldValue)
user.Username = string.Empty;
if (!string.IsNullOrEmpty(user.Username))