void C_DownLoader_AddFile() { if (!string.IsNullOrEmpty(DownloadUrl)) { var file = new DownloadItemViewModel(DownloadUrl); DownloadFileList.Add(file); DownloadUrl = null; } }
private void C_AddBeatMapToDown(BeatMapViewModel p) { string bmDnUrl = p.Beat_Map.DownUrl_osz_so.ToString(); //��ȡҪ���ŵ�BeatMap�ĵ�ַ bool isInDownList = downList.Contains(bmDnUrl); if (isInDownList) { MessageBoxResult result = MessageBox.Show("���ִ˶�����������������б���Ƿ�������ӣ�", "�ظ�������ʾ", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No); if (result == MessageBoxResult.No) return; } downList.Add(bmDnUrl); var file = new DownloadItemViewModel(bmDnUrl); DownloadFileList.Add(file); }