private void MenuItemCopyDownloadUrl_Click(object sender, RoutedEventArgs e)
        {
            Log.GetLogger().Info("MainWindow->menuItemCopyDownloadUrl_Click", "Clicked menuItemCopyDownloadUrl");
            if (dataGrid.SelectedItems.Count == 0)
            {
                return;
            }
            var task = GetSelectedTask(dataGrid);

            if (task.DownloadUrl == null || task.DownloadUrl.Count == 0)
            {
                NotificationData.GetInstance().Add(
                    new NotifictionMessage(NotificationLevel.Warning, "下载地址尚未获取到, 请等待或删除本任务."));
            }
            else
            {
                Clipboard.SetText(GetSelectedTask(dataGrid).DownloadUrl[0]);
            }
        }
        private void MenuItemCopyDanmuDownloadUrl_Click(object sender, RoutedEventArgs e)
        {
            Log.GetLogger().Info("MainWindow->menuItemCopyDanmuDownloadUrl_Click", "Executed menuItemCopyDanmuDownloadUrl");
            if (dataGrid.SelectedItems.Count == 0)
            {
                NotificationData.GetInstance().Add(
                    new NotifictionMessage(NotificationLevel.Warning, "尚未选择所要获取下载地址的项"));
                return;
            }
            var task = GetSelectedTask(dataGrid);

            if (task.Danmu == string.Empty)
            {
                NotificationData.GetInstance().Add(
                    new NotifictionMessage(NotificationLevel.Warning, "尚未获取到所要复制的下载地址"));
            }
            else
            {
                Clipboard.SetText(task.Danmu);
                NotificationData.GetInstance().Add(
                    new NotifictionMessage(NotificationLevel.Info, "已复制下载地址到剪切板"));
            }
        }
 private void ButtonCloseMessage_Click(object sender, RoutedEventArgs e)
 {
     Log.GetLogger().Info("MainWindow->buttonCloseMessage_Click", "Clicked buttonCloseMessage.");
     NotificationData.GetInstance().RemoveLast();
 }