FaView.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <UserControl x:Class="Venus_MainPages.Views.FaView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  7. xmlns:local="clr-namespace:Venus_MainPages.Views"
  8. xmlns:ctrls="clr-namespace:Venus_Themes.UserControls;assembly=Venus_Themes"
  9. mc:Ignorable="d"
  10. d:DesignHeight="1024" d:DesignWidth="1580">
  11. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="500"></ColumnDefinition>
  14. <ColumnDefinition Width="500"></ColumnDefinition>
  15. <ColumnDefinition Width="500"></ColumnDefinition>
  16. </Grid.ColumnDefinitions>
  17. <TabControl Height="400" Background="{DynamicResource Table_BG_Content}">
  18. <TabControl.Resources>
  19. <Style TargetType="{x:Type TabPanel}">
  20. <Setter Property="HorizontalAlignment" Value="Center"/>
  21. <Setter Property="Background" Value="{DynamicResource Color_BG_Button}"/>
  22. </Style>
  23. </TabControl.Resources>
  24. <TabItem Header="Host Communication" >
  25. <Grid Margin="5">
  26. <Grid.RowDefinitions>
  27. <RowDefinition Height="30" />
  28. <RowDefinition Height="Auto" />
  29. </Grid.RowDefinitions>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="180"/>
  32. <ColumnDefinition Width="*"/>
  33. </Grid.ColumnDefinitions>
  34. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" >
  35. <TextBlock Text="Communication State" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  36. </Border>
  37. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="1" Padding="5,1" Grid.ColumnSpan="2">
  38. <TextBlock Text="{Binding HostCommunicationStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  39. </Border>
  40. <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,80,0,10" >
  41. <Button Content="Enable" Command="{Binding FaEnable}" Width="90" Height="30" VerticalAlignment="Center" IsEnabled="{Binding IsEnableEnable}" >
  42. </Button>
  43. <Button Content="Disable" Command="{Binding FaDisable}" Width="90" Height="30" Margin="10,0,0,0" VerticalAlignment="Center" IsEnabled="{Binding IsEnableDisable}" >
  44. </Button>
  45. </StackPanel>
  46. </Grid>
  47. </TabItem>
  48. </TabControl>
  49. <TabControl Height="400" Grid.Column="1" Margin="10,0" Background="{DynamicResource Table_BG_Content}">
  50. <TabControl.Resources>
  51. <Style TargetType="{x:Type TabPanel}">
  52. <Setter Property="HorizontalAlignment" Value="Center"/>
  53. <Setter Property="Background" Value="{DynamicResource Color_BG_Button}"/>
  54. </Style>
  55. </TabControl.Resources>
  56. <TabItem Header="Host Control">
  57. <Grid Margin="5">
  58. <Grid.RowDefinitions>
  59. <RowDefinition Height="30" />
  60. <RowDefinition Height="Auto" />
  61. </Grid.RowDefinitions>
  62. <Grid.ColumnDefinitions>
  63. <ColumnDefinition Width="180"/>
  64. <ColumnDefinition />
  65. </Grid.ColumnDefinitions>
  66. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Grid.ColumnSpan="2">
  67. <TextBlock Text="Control State" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  68. </Border>
  69. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="2" Padding="5,1">
  70. <TextBlock Text="{Binding HostControlStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  71. </Border>
  72. <UniformGrid Columns="2" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,80,0,10" >
  73. <Button Content="Online" Command="{Binding FaOnline}" Width="90" Height="30" Margin="0,0,10,5" IsEnabled="{Binding IsEnableOnline}">
  74. </Button>
  75. <Button Content="Offline" Command="{Binding FaOffline}" Width="90" Height="30" Margin="0,0,10,5" IsEnabled="{Binding IsEnableOffline}" >
  76. </Button>
  77. <Button Content="Local" Command="{Binding FaLocal}" Width="90" Height="30" Margin="0,0,10,5" IsEnabled="{Binding IsEnableLocal}" >
  78. </Button>
  79. <Button Content="Remote" Command="{Binding FaRemote}" Width="90" Height="30" Margin="0,0,10,5" IsEnabled="{Binding IsEnableRemote}" >
  80. </Button>
  81. </UniformGrid>
  82. </Grid>
  83. </TabItem>
  84. </TabControl>
  85. <TabControl Height="400" Grid.Column="2" Background="{DynamicResource Table_BG_Content}">
  86. <TabControl.Resources>
  87. <Style TargetType="{x:Type TabPanel}">
  88. <Setter Property="HorizontalAlignment" Value="Center"/>
  89. <Setter Property="Background" Value="{DynamicResource Color_BG_Button}"/>
  90. </Style>
  91. </TabControl.Resources>
  92. <TabItem Header="Spooling">
  93. <Grid Margin="5">
  94. <Grid.RowDefinitions>
  95. <RowDefinition Height="30" />
  96. <RowDefinition Height="30" />
  97. <RowDefinition Height="30" />
  98. <RowDefinition Height="30" />
  99. <RowDefinition Height="30" />
  100. <RowDefinition Height="Auto" />
  101. </Grid.RowDefinitions>
  102. <Grid.ColumnDefinitions>
  103. <ColumnDefinition Width="180" />
  104. <ColumnDefinition />
  105. </Grid.ColumnDefinitions>
  106. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  107. <TextBlock Text="Spooling State" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  108. </Border>
  109. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="1" Padding="5,1">
  110. <TextBlock Text="{Binding SpoolingState}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  111. </Border>
  112. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1">
  113. <TextBlock Text="Actual" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  114. </Border>
  115. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="1" Padding="5,1">
  116. <TextBlock Text="{Binding SpoolingActual}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  117. </Border>
  118. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Padding="5,1">
  119. <TextBlock Text="Total" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  120. </Border>
  121. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="1" Padding="5,1">
  122. <TextBlock Text="{Binding SpoolingTotal}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  123. </Border>
  124. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Padding="5,1">
  125. <TextBlock Text="Full Time" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  126. </Border>
  127. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column="1" Padding="5,1">
  128. <TextBlock Text="{Binding SpoolingFullTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  129. </Border>
  130. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Padding="5,1">
  131. <TextBlock Text="Start Time" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  132. </Border>
  133. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column="1" Padding="5,1">
  134. <TextBlock Text="{Binding SpoolingStartTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  135. </Border>
  136. <StackPanel Orientation="Horizontal" Grid.Row="5" Margin="0,10" Grid.ColumnSpan="2" HorizontalAlignment="Center">
  137. <Button Content="Enable" Command="{Binding FaEnableSpooling}" Width="90" Height="30" IsEnabled="{Binding IsEnableEnableSpooling}" >
  138. </Button>
  139. <Button Content="Disable" Command="{Binding FaDisableSpooling}" Width="90" Height="30" Margin="10,0,0,0" IsEnabled="{Binding IsEnableDisableSpooling}" >
  140. </Button>
  141. </StackPanel>
  142. </Grid>
  143. </TabItem>
  144. </TabControl>
  145. </Grid>
  146. </UserControl>