コード例 #1
0
        public static BrowseViewModel GetInstance()
        {
            if (instance == null)
            {
                instance = new BrowseViewModel();
            }

            return(instance);
        }
コード例 #2
0
        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");
        }