ntminer 5 years ago
parent
commit
033397bad5

+ 9 - 2
src/AppViews0/MinerStudio/Views/Ucs/GpuNameCountPage.xaml

@@ -12,7 +12,7 @@
     Background="White"
 	mc:Ignorable="d" 
     d:DesignHeight="700" 
-    d:DesignWidth="500"
+    d:DesignWidth="600"
     d:DataContext="{d:DesignData Source=../Design/GpuNameCountPageViewModel.xaml}">
     <Grid Margin="0 0 0 10" Background="{StaticResource ToolbarBackground}">
 		<DataGrid 
@@ -69,7 +69,14 @@
 						</DataTemplate>
 					</DataGridTemplateColumn.CellTemplate>
                 </DataGridTemplateColumn>
-			</DataGrid.Columns>
+                <DataGridTemplateColumn Width="100" IsReadOnly="True" Header="数量">
+                    <DataGridTemplateColumn.CellTemplate>
+                        <DataTemplate>
+                            <TextBlock Text="{Binding Count}"></TextBlock>
+                        </DataTemplate>
+                    </DataGridTemplateColumn.CellTemplate>
+                </DataGridTemplateColumn>
+            </DataGrid.Columns>
 		</DataGrid>
         <TextBlock Visibility="{Binding GpuNameCounts,Converter={StaticResource NoRecordVisibilityConverter}}" Foreground="Red" HorizontalAlignment="Center" VerticalAlignment="Center">没有记录</TextBlock>
 	</Grid>

+ 1 - 1
src/AppViews0/MinerStudio/Views/Ucs/GpuNameCountPage.xaml.cs

@@ -10,7 +10,7 @@ namespace NTMiner.MinerStudio.Views.Ucs {
             ContainerWindow.ShowWindow(new ContainerWindowViewModel {
                 Title = "Gpu名称统计",
                 IconName = "Icon_Gpu",
-                Width = 500,
+                Width = 600,
                 Height = 700,
                 IsMaskTheParent = false,
                 IsChildWindow = true,