public void UseStyle(DynamicWorkItemSevenStyle style)
 {
     switch (style)
     {
         case DynamicWorkItemSevenStyle.FourHyperLink:
             this.tbkAfterNameTwo.TextTrimming = TextTrimming.WordEllipsis;
             this.tbkAfterNameTwo.HorizontalAlignment = HorizontalAlignment.Left;
             this.tbkAfterNameTwo.Style = (base.FindResource("TitleStyle") as Style);
             this.tbkAfterNameTwo.MouseLeftButtonDown += delegate
             {
                 BrowserUtil.OpenHyperlinkHandler(this.urlFour);
             };
             this.tbkAfterToNameFour.HorizontalAlignment = HorizontalAlignment.Left;
             this.tbkAfterToNameFour.Foreground = new SolidColorBrush(Color.FromRgb(0, 109, 131));
             break;
         case DynamicWorkItemSevenStyle.SixHyperlink:
             this.tbkAfterNameTwo.HorizontalAlignment = HorizontalAlignment.Left;
             this.tbkAfterNameTwo.Foreground = new SolidColorBrush(Color.FromRgb(0, 109, 131));
             this.tbkAfterToNameFour.TextTrimming = TextTrimming.WordEllipsis;
             this.tbkAfterToNameFour.HorizontalAlignment = HorizontalAlignment.Left;
             this.tbkAfterToNameFour.Style = (base.FindResource("TitleStyle") as Style);
             this.tbkAfterToNameFour.MouseLeftButtonDown += delegate
             {
                 BrowserUtil.OpenHyperlinkHandler(this.urlSix);
             };
             break;
     }
 }
 private void AddDynamicWorkItemSevenTwo(BaseDynamicWorkObjViewModel viewModel, DynamicWorkItemSevenStyle style)
 {
     if (viewModel.RepalceStrs.Count == 4 && viewModel.UnReplaceStrs.Count == 2)
     {
         DynamicWorkItemSeven row = new DynamicWorkItemSeven(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.RepalceStrs[2], viewModel.RepalceStrs[3], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
     else
     {
         viewModel.UnReplaceStrs.Clear();
         viewModel.UnReplaceStrs.Add("在以下目录中上传了");
         viewModel.UnReplaceStrs.Add("文件");
         viewModel.RepalceStrs.Clear();
         viewModel.RepalceStrs.Add("上传者");
         viewModel.RepalceStrs.Add("文件数量");
         viewModel.RepalceStrs.Add("文件名");
         viewModel.RepalceStrs.Add("目录名称");
         DynamicWorkItemSeven row = new DynamicWorkItemSeven(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.RepalceStrs[2], viewModel.RepalceStrs[3], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
 }
 private void AddDynamicWorkItemSeven(BaseDynamicWorkObjViewModel viewModel, DynamicWorkItemSevenStyle style)
 {
     if (viewModel.RepalceStrs.Count == 3 && viewModel.UnReplaceStrs.Count == 3)
     {
         DynamicWorkItemSeven row = new DynamicWorkItemSeven(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.RepalceStrs[2], viewModel.UnReplaceStrs[2], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
     else
     {
         viewModel.UnReplaceStrs.Clear();
         viewModel.UnReplaceStrs.Add("通过");
         viewModel.UnReplaceStrs.Add("在工作任务");
         viewModel.UnReplaceStrs.Add("中递交的工作简报");
         viewModel.RepalceStrs.Clear();
         viewModel.RepalceStrs.Add("发布人");
         viewModel.RepalceStrs.Add("执行人");
         viewModel.RepalceStrs.Add("任务名称");
         DynamicWorkItemSeven row = new DynamicWorkItemSeven(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.RepalceStrs[2], viewModel.UnReplaceStrs[2], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
 }