private void ShowSearchView() { SearchView view = new SearchView(); view.ViewModel.RequestSave += (string title, string url) => { if (title != null && url != null) { MusicList.Add(new PlayerModel(title, url)); } }; view.ViewModel.RequestClose += (bool result) => { view.Close(); }; view.Show(); }