mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 02:27:25 +08:00
Complying with rule "Instance fields (private)"
This commit is contained in:
parent
21cf96ec10
commit
87ec0e36ea
@ -16,7 +16,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
private BeatmapDatabase db, oldDb;
|
||||
private TestStorage storage;
|
||||
private Random rnd = new Random();
|
||||
private PlaySongSelect SongSelect;
|
||||
private PlaySongSelect songSelect;
|
||||
|
||||
public override string Name => @"Song Select";
|
||||
public override string Description => @"with fake data";
|
||||
@ -44,11 +44,11 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
db.Import(sets);
|
||||
}
|
||||
|
||||
Add(SongSelect = new PlaySongSelect());
|
||||
OnArtist = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Artist; };
|
||||
OnTitle = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Title; };
|
||||
OnAuthor = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Author; };
|
||||
OnDifficulty = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Difficulty; };
|
||||
Add(songSelect = new PlaySongSelect());
|
||||
OnArtist = () => { songSelect.Filter.Sort = FilterControl.SortMode.Artist; };
|
||||
OnTitle = () => { songSelect.Filter.Sort = FilterControl.SortMode.Title; };
|
||||
OnAuthor = () => { songSelect.Filter.Sort = FilterControl.SortMode.Author; };
|
||||
OnDifficulty = () => { songSelect.Filter.Sort = FilterControl.SortMode.Difficulty; };
|
||||
|
||||
AddButton(@"Sort by Artist", OnArtist);
|
||||
AddButton(@"Sort by Title", OnTitle);
|
||||
|
Loading…
Reference in New Issue
Block a user