public static BrowseViewModel GetInstance() { if (instance == null) { instance = new BrowseViewModel(); } return(instance); }
private async void SearchCommandExecute(object obj) { int rank = int.Parse(obj.ToString()); string singer = RankCollection[rank - 1].singer; string song = RankCollection[rank - 1].song; object search = singer + " " + song; BrowseViewModel.GetInstance().SearchExecuteCommand(search); await Shell.Current.GoToAsync("//search"); }