public void GetResultMethod(object param) { if (param == null) { throw new ArgumentNullException(); } Result = Convert.ToBoolean(param); DisplayRootRegistry.ClosePresentation(this); }
/// <summary> /// Метод создающий новый плейлист. /// </summary> public void CreateNewPlaylistMethod(object param) { if (IsSelectedAll) { NewPlaylist = playlist; } else { foreach (var item in Playlist.Where((s) => s.IsCheck == true).Select(s => s.Title)) { NewPlaylist.Add(playlist.Single(s => s.Name == item)); } } if (NewPlaylist.Count != 0) { Result = true; DisplayRootRegistry.ClosePresentation(this); } }
public void CancelMethod(object param) { NewTitle = ""; DisplayRootRegistry.ClosePresentation(this); }
public void AcceptMethod(object param) { DisplayRootRegistry.ClosePresentation(this); }