UpdatePage.xaml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <UserControl
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:local="clr-namespace:BellwetherBackend.SubPage"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:mui="http://firstfloorsoftware.com/ModernUI"
  8. d:DesignHeight="450"
  9. d:DesignWidth="800"
  10. mc:Ignorable="d"
  11. x:Class="BellwetherBackend.SubPage.UpdatePage">
  12. <Grid HorizontalAlignment="Center">
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition Width="200" />
  15. <ColumnDefinition Width="300" />
  16. <ColumnDefinition Width="610" />
  17. <ColumnDefinition Width="360" />
  18. <ColumnDefinition Width="350" />
  19. </Grid.ColumnDefinitions>
  20. <Grid Grid.Column="1">
  21. <StackPanel
  22. x:Name="uxUpdateListPanel"
  23. HorizontalAlignment="Center"
  24. VerticalAlignment="Center"
  25. Orientation="Vertical">
  26. <TextBlock
  27. Width="280"
  28. Height="38"
  29. Margin="0,0,0,10"
  30. FontSize="30"
  31. TextAlignment="Center">
  32. 更新項目選擇 :
  33. </TextBlock>
  34. <Border BorderBrush="Black" BorderThickness="2" />
  35. <CheckBox
  36. Width="280"
  37. Height="50"
  38. FontSize="30"
  39. IsChecked="True"
  40. Tag="Basic">
  41. 基本設定
  42. </CheckBox>
  43. <CheckBox
  44. Width="280"
  45. Height="50"
  46. FontSize="30"
  47. IsChecked="True"
  48. Tag="FrontPage">
  49. 首頁
  50. </CheckBox>
  51. <CheckBox
  52. Width="280"
  53. Height="50"
  54. FontSize="30"
  55. IsChecked="True"
  56. Tag="History">
  57. BellWether
  58. </CheckBox>
  59. <CheckBox
  60. Width="280"
  61. Height="50"
  62. FontSize="30"
  63. IsChecked="True"
  64. Tag="Product">
  65. 產品簡介
  66. </CheckBox>
  67. <CheckBox
  68. Width="280"
  69. Height="50"
  70. FontSize="30"
  71. IsChecked="True"
  72. Tag="CSR">
  73. 企業永續
  74. </CheckBox>
  75. </StackPanel>
  76. </Grid>
  77. <Grid Grid.Column="2" VerticalAlignment="Center">
  78. <StackPanel Orientation="Vertical">
  79. <Grid Name="uxWorkingGrid">
  80. <Grid.ColumnDefinitions>
  81. <ColumnDefinition Width="2.5*" />
  82. <ColumnDefinition Width="0.5*" />
  83. </Grid.ColumnDefinitions>
  84. <Grid Name="uxIpGrid" Grid.Column="0">
  85. <Grid.ColumnDefinitions>
  86. <ColumnDefinition Width="0.3*" />
  87. <ColumnDefinition Width="0.1*" />
  88. <ColumnDefinition Width="2*" />
  89. <ColumnDefinition Width="0.1*" />
  90. <ColumnDefinition Width="2*" />
  91. <ColumnDefinition Width="0.1*" />
  92. <ColumnDefinition Width="2*" />
  93. <ColumnDefinition Width="0.1*" />
  94. <ColumnDefinition Width="2*" />
  95. </Grid.ColumnDefinitions>
  96. <Rectangle
  97. Name="uxConnectStateRect"
  98. Grid.Column="0"
  99. Margin="0,1,1,1"
  100. Fill="Red" />
  101. <TextBox
  102. Name="uxIp1Text"
  103. Grid.Column="2"
  104. Margin="2"
  105. HorizontalContentAlignment="Center"
  106. VerticalContentAlignment="Center"
  107. MaxLength="3" />
  108. <TextBlock
  109. Grid.Column="3"
  110. HorizontalAlignment="Center"
  111. VerticalAlignment="Center"
  112. Text="." />
  113. <TextBox
  114. Name="uxIp2Text"
  115. Grid.Column="4"
  116. Margin="2"
  117. HorizontalContentAlignment="Center"
  118. VerticalContentAlignment="Center"
  119. MaxLength="3" />
  120. <TextBlock
  121. Grid.Column="5"
  122. HorizontalAlignment="Center"
  123. VerticalAlignment="Center"
  124. Text="." />
  125. <TextBox
  126. Name="uxIp3Text"
  127. Grid.Column="6"
  128. Margin="2"
  129. HorizontalContentAlignment="Center"
  130. VerticalContentAlignment="Center"
  131. MaxLength="3" />
  132. <TextBlock
  133. Grid.Column="7"
  134. HorizontalAlignment="Center"
  135. VerticalAlignment="Center"
  136. Text="." />
  137. <TextBox
  138. Name="uxIp4Text"
  139. Grid.Column="8"
  140. Margin="2"
  141. HorizontalContentAlignment="Center"
  142. VerticalContentAlignment="Center"
  143. MaxLength="3" />
  144. </Grid>
  145. <StackPanel Grid.Column="1" Orientation="Horizontal">
  146. <mui:ModernButton
  147. Name="uxConnectBtn"
  148. Grid.Column="1"
  149. Margin="4,0,0,0"
  150. Background="White"
  151. Click="uxConnect_Click"
  152. EllipseDiameter="45"
  153. IconHeight="18"
  154. IconWidth="18"
  155. ToolTip="連線" />
  156. <mui:ModernButton
  157. Name="uxDisConnectBtn"
  158. Margin="2,0,0,0"
  159. Background="White"
  160. Click="uxDisConnectBtn_Click"
  161. EllipseDiameter="45"
  162. IconHeight="18"
  163. IconWidth="18"
  164. IsEnabled="False"
  165. ToolTip="中斷連線" />
  166. </StackPanel>
  167. </Grid>
  168. <ProgressBar
  169. Name="uxProgressBar"
  170. Grid.ColumnSpan="7"
  171. IsIndeterminate="True"
  172. Visibility="Collapsed" />
  173. </StackPanel>
  174. </Grid>
  175. <Grid Grid.Column="3" VerticalAlignment="Center">
  176. <StackPanel Orientation="Horizontal">
  177. <Grid>
  178. <ProgressBar
  179. x:Name="uxUpdateProgressBar"
  180. Width="300"
  181. Height="26"
  182. BorderBrush="#FF786A6A"
  183. Foreground="#FFEF5353"
  184. Maximum="100"
  185. Minimum="0" />
  186. </Grid>
  187. <mui:ModernButton
  188. Name="uxUpdateBtn"
  189. Margin="2,0,0,0"
  190. HorizontalAlignment="Right"
  191. Background="White"
  192. Click="uxUpdateBtn_Click"
  193. EllipseDiameter="45"
  194. IconHeight="18"
  195. IconWidth="18"
  196. IsEnabled="False"
  197. ToolTip="開啟更新" />
  198. </StackPanel>
  199. </Grid>
  200. <Grid Grid.Column="4" VerticalAlignment="Center">
  201. <StackPanel Orientation="Vertical">
  202. <TextBlock
  203. x:Name="uxStatus"
  204. Height="45"
  205. Margin="5,0,0,0"
  206. FontSize="30" />
  207. </StackPanel>
  208. </Grid>
  209. </Grid>
  210. </UserControl>