private void AddDynamicWorkItemFive(BaseDynamicWorkObjViewModel viewModel, DynamicWorkItemFiveStyle style)
 {
     if (viewModel.RepalceStrs.Count == 2 && viewModel.UnReplaceStrs.Count == 2)
     {
         DynamicWorkItemFive row = new DynamicWorkItemFive(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], 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("项目名称");
         DynamicWorkItemFive row = new DynamicWorkItemFive(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
 }
        public void UseStyle(DynamicWorkItemFiveStyle style)
        {
            switch (style)
            {
            case DynamicWorkItemFiveStyle.FourHyperLink:
                this.tbkAfterNameTwo.Style                = (base.FindResource("TitleStyle") as Style);
                this.tbkAfterNameTwo.TextTrimming         = TextTrimming.WordEllipsis;
                this.tbkAfterNameTwo.HorizontalAlignment  = HorizontalAlignment.Left;
                this.tbkAfterNameTwo.MouseLeftButtonDown += delegate
                {
                    BrowserUtil.OpenHyperlinkHandler(this.url);
                };
                break;

            case DynamicWorkItemFiveStyle.LastHyperLinkSpectial:
                this.tbkAfterNameTwo.TextTrimming           = TextTrimming.WordEllipsis;
                this.tbkAfterNameTwo.HorizontalAlignment    = HorizontalAlignment.Left;
                this.tbkAfterNameTwo.Foreground             = new SolidColorBrush(Color.FromRgb(0, 109, 131));
                this.tbkAfterNameThree.Style                = (base.FindResource("TitleStyle") as Style);
                this.tbkAfterNameThree.TextTrimming         = TextTrimming.WordEllipsis;
                this.tbkAfterNameThree.HorizontalAlignment  = HorizontalAlignment.Left;
                this.tbkAfterNameThree.MouseLeftButtonDown += delegate
                {
                    BrowserUtil.OpenHyperlinkHandler(this.url);
                };
                break;

            case DynamicWorkItemFiveStyle.LastHyperLink:
                this.tbkAfterNameThree.Style                = (base.FindResource("TitleStyle") as Style);
                this.tbkAfterNameThree.TextTrimming         = TextTrimming.WordEllipsis;
                this.tbkAfterNameThree.HorizontalAlignment  = HorizontalAlignment.Left;
                this.tbkAfterNameThree.MouseLeftButtonDown += delegate
                {
                    BrowserUtil.OpenHyperlinkHandler(this.url);
                };
                break;
            }
        }
 public void UseStyle(DynamicWorkItemFiveStyle style)
 {
     switch (style)
     {
     case DynamicWorkItemFiveStyle.FourHyperLink:
         this.tbkAfterNameTwo.Style = (base.FindResource("TitleStyle") as Style);
         this.tbkAfterNameTwo.TextTrimming = TextTrimming.WordEllipsis;
         this.tbkAfterNameTwo.HorizontalAlignment = HorizontalAlignment.Left;
         this.tbkAfterNameTwo.MouseLeftButtonDown += delegate
         {
             BrowserUtil.OpenHyperlinkHandler(this.url);
         };
         break;
     case DynamicWorkItemFiveStyle.LastHyperLinkSpectial:
         this.tbkAfterNameTwo.TextTrimming = TextTrimming.WordEllipsis;
         this.tbkAfterNameTwo.HorizontalAlignment = HorizontalAlignment.Left;
         this.tbkAfterNameTwo.Foreground = new SolidColorBrush(Color.FromRgb(0, 109, 131));
         this.tbkAfterNameThree.Style = (base.FindResource("TitleStyle") as Style);
         this.tbkAfterNameThree.TextTrimming = TextTrimming.WordEllipsis;
         this.tbkAfterNameThree.HorizontalAlignment = HorizontalAlignment.Left;
         this.tbkAfterNameThree.MouseLeftButtonDown += delegate
         {
             BrowserUtil.OpenHyperlinkHandler(this.url);
         };
         break;
     case DynamicWorkItemFiveStyle.LastHyperLink:
         this.tbkAfterNameThree.Style = (base.FindResource("TitleStyle") as Style);
         this.tbkAfterNameThree.TextTrimming = TextTrimming.WordEllipsis;
         this.tbkAfterNameThree.HorizontalAlignment = HorizontalAlignment.Left;
         this.tbkAfterNameThree.MouseLeftButtonDown += delegate
         {
             BrowserUtil.OpenHyperlinkHandler(this.url);
         };
         break;
     }
 }
 private void AddDynamicWorkItemFive(BaseDynamicWorkObjViewModel viewModel, DynamicWorkItemFiveStyle style)
 {
     if (viewModel.RepalceStrs.Count == 2 && viewModel.UnReplaceStrs.Count == 2)
     {
         DynamicWorkItemFive row = new DynamicWorkItemFive(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], 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("项目名称");
         DynamicWorkItemFive row = new DynamicWorkItemFive(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
 }