Ver Fonte

1、修改消息查看页面

litong há 6 meses atrás
pai
commit
2c56bc50ef

+ 15 - 16
CollaborativePlatformMain/Form/MessageSubPage/SeconMessagePage.xaml.cs

@@ -294,15 +294,14 @@ namespace CollaborativePlatformMain.Form.MessageSubPage
             me_right.Children.Clear();
             foreach (var specificConten in specificContent)
             {
-
-                //TextBlock textBlock = new TextBlock();
-                //textBlock.Text = specificConten;
-                //textBlock.FontSize = 15;
-                //textBlock.FontFamily = new FontFamily("黑体");
-                //textBlock.DataContext = announcement;
-                //me_right.Children.Add(textBlock);
-                //ScrollViewer scrollViewer=new ScrollViewer();
-                //scrollViewer.VerticalScrollBarVisibility= ScrollBarVisibility.Auto;
+                TextBlock textBlock = new TextBlock();
+                textBlock.Text = specificConten;
+                textBlock.FontSize = 15;
+                textBlock.FontFamily = new FontFamily("黑体");
+                textBlock.DataContext = announcement;
+                me_right.Children.Add(textBlock);
+                //ScrollViewer scrollViewer = new ScrollViewer();
+                //scrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
                 //me_right.Children.Add(scrollViewer);
                 if (SelectNode.Equals("项目"))
                 {
@@ -335,14 +334,14 @@ namespace CollaborativePlatformMain.Form.MessageSubPage
                     dockPanel.HorizontalAlignment = HorizontalAlignment.Right;
                     StackPanel stackPanel1 = new StackPanel();
 
-                    TextBlock textBlock = new TextBlock();
-                    textBlock.Text = specificConten;
-                    textBlock.FontSize = 15;
-                    textBlock.FontFamily = new FontFamily("黑体");
-                    textBlock.DataContext = specificConten;
-                    textBlock.HorizontalAlignment = HorizontalAlignment.Left;
+                    TextBlock textBlock3 = new TextBlock();
+                    textBlock3.Text = specificConten;
+                    textBlock3.FontSize = 15;
+                    textBlock3.FontFamily = new FontFamily("黑体");
+                    textBlock3.DataContext = specificConten;
+                    textBlock3.HorizontalAlignment = HorizontalAlignment.Left;
                     stackPanel1.DataContext = specificConten;
-                    stackPanel1.Children.Add(textBlock);
+                    stackPanel1.Children.Add(textBlock3);
                     stackPanel1.Children.Add(dockPanel);
                     stackPanel1.Width = 480;
 

+ 2 - 1
CollaborativePlatformMain/Form/MessageSubPage/SeconToolLibraryPage.xaml.cs

@@ -57,7 +57,8 @@ namespace CollaborativePlatformMain.Form.MessageSubPage
             ToolFunctionEntity toolFunctionEntity2 = new ToolFunctionEntity("块分解", @"/Image/folderImage.png", false);
             ToolFunctionEntity toolFunctionEntity3 = new ToolFunctionEntity("块基点更改", @"/Image/folderImage.png", false);
             ToolFunctionEntity toolFunctionEntity4 = new ToolFunctionEntity("修改块颜色", @"/Image/folderImage.png", false);
-            BlockDatas = new List<ToolFunctionEntity>() { toolFunctionEntity1, toolFunctionEntity2, toolFunctionEntity3, toolFunctionEntity4 };
+            ToolFunctionEntity toolFunctionEntity11 = new ToolFunctionEntity("修改块名称", @"/Image/folderImage.png", false);
+            BlockDatas = new List<ToolFunctionEntity>() { toolFunctionEntity1, toolFunctionEntity2, toolFunctionEntity3, toolFunctionEntity4, toolFunctionEntity11 };
 
             ToolFunctionEntity toolFunctionEntity5 = new ToolFunctionEntity("图纸对比", @"/Image/folderImage.png", false);
             ContrastDatas = new List<ToolFunctionEntity>() { toolFunctionEntity5 };