InfomationTabsWindow.xaml 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. <common:BaseWindow x:Class="ClickOnceSetup.InfomationTabs"
  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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:common="clr-namespace:ClickOnceSetup.Common"
  7. mc:Ignorable="d"
  8. Title="InfomationTabs" Height="830" Width="1000" WindowStyle="None" AllowsTransparency="True" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" BorderThickness="2" BorderBrush="#6495ED">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="Auto"></RowDefinition>
  12. <RowDefinition Height="Auto"></RowDefinition>
  13. </Grid.RowDefinitions>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="Auto"></ColumnDefinition>
  16. </Grid.ColumnDefinitions>
  17. <DockPanel>
  18. <TabControl Grid.Row="0" Grid.Column="0" DockPanel.Dock="Top" HorizontalAlignment="Left" Height="750" Width="999">
  19. <TabItem Header="{common:Translater Mainconfiguration }" Height="40">
  20. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="Auto"></RowDefinition>
  23. <RowDefinition Height="Auto"></RowDefinition>
  24. <RowDefinition Height="Auto"></RowDefinition>
  25. <RowDefinition Height="Auto"></RowDefinition>
  26. </Grid.RowDefinitions>
  27. <Grid.ColumnDefinitions>
  28. <ColumnDefinition Width="210"></ColumnDefinition>
  29. <ColumnDefinition Width="300"></ColumnDefinition>
  30. <ColumnDefinition Width="120"></ColumnDefinition>
  31. </Grid.ColumnDefinitions>
  32. <Label Grid.Row="0" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" x:Name="lb_Systeminstallationpath" Content="{common:Translater Systeminstallationpath}" FontWeight="Bold"/>
  33. <TextBox Grid.Row="0" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_Systeminstallationpath" TextChanged="Txt_Systeminstallationpath_TextChanged"/>
  34. <Button Grid.Row="0" Grid.Column="2" Margin="5,5,5,5" x:Name="btn_Chose" Content="{common:Translater Choose}" Click="Btn_Chose_Click" />
  35. <Label Grid.Row="1" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" x:Name="lb_Serverdomainname" Content="{common:Translater Serverdomainname}" FontWeight="Bold"/>
  36. <TextBox Grid.Row="1" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_Serverdomainname" />
  37. <Button Grid.Row="1" Grid.Column="2" Margin="5,5,5,5" x:Name="btn_Setdomain" Content="{common:Translater Domainreplace}" Click="Btn_Setdomain_Click" FontWeight="Bold" Foreground="#FFC54141" >
  38. <Button.ToolTip>
  39. <ToolTip>
  40. <StackPanel>
  41. <TextBlock FontWeight="Heavy" Text="{common:Translater Attention}"></TextBlock>
  42. <TextBlock Text="{common:Translater AttentionDomainReplace}"></TextBlock>
  43. </StackPanel>
  44. </ToolTip>
  45. </Button.ToolTip>
  46. </Button>
  47. <Label Grid.Row="2" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" x:Name="lb_Streamingmediaservertype" Content="{common:Translater Streamingmediaservertype }" FontWeight="Bold"/>
  48. <ComboBox Grid.Row="2" Grid.Column="1" Margin="5,5,5,5" x:Name="cb_LiveVideoType" SelectedIndex="0" SelectionChanged="ComboBox_SelectionChanged">
  49. <TextBlock x:Name="tb_netease" Text="{common:Translater Netease}"/>
  50. <TextBlock x:Name="tb_common" Text="{common:Translater Common}"/>
  51. </ComboBox>
  52. <Label Grid.Row="3" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" x:Name="lb_LiveVideoAddressLabel" Content="{common:Translater Streamingmediaserveraddress}" FontWeight="Bold" IsEnabled="False"/>
  53. <TextBox Grid.Row="3" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_LiveVideoAddress" IsEnabled="False"/>
  54. </Grid>
  55. </TabItem>
  56. <TabItem Header="{common:Translater Dependpack }">
  57. <StackPanel x:Name="grid_dependPack" HorizontalAlignment="Center" VerticalAlignment="Center">
  58. <CheckBox Margin="5,5,5,5" x:Name="tb_netcore" Content="{common:Translater NetCore }" Tag="start /wait dotnet-sdk-2.0.3-win-x64.exe /quiet"/>
  59. <CheckBox Margin="5,5,5,5" x:Name="tb_nodejs" Content="{common:Translater NodeJS }" Tag="start /wait node-v8.11.4-x64.msi /qn"/>
  60. </StackPanel>
  61. </TabItem>
  62. <TabItem Header="{common:Translater Emailconfiguration }">
  63. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  64. <Grid.RowDefinitions>
  65. <RowDefinition Height="Auto"></RowDefinition>
  66. <RowDefinition Height="Auto"></RowDefinition>
  67. </Grid.RowDefinitions>
  68. <Grid.ColumnDefinitions>
  69. <ColumnDefinition Width="130"></ColumnDefinition>
  70. <ColumnDefinition Width="220"></ColumnDefinition>
  71. <ColumnDefinition Width="130"></ColumnDefinition>
  72. <ColumnDefinition Width="80"></ColumnDefinition>
  73. <ColumnDefinition Width="140"></ColumnDefinition>
  74. </Grid.ColumnDefinitions>
  75. <Label x:Name="lb_emailAddress" Grid.Row="0" Grid.Column="0" Content="{common:Translater Emailserver}" Margin="5,5,5,5" FontWeight="Bold"></Label>
  76. <TextBox Grid.Row="0" Grid.Column="1" x:Name="txt_MailHost" Margin="5,5,5,5" Text=""></TextBox>
  77. <Label x:Name="lb_smtp" Grid.Row="0" Grid.Column="2" Content="{common:Translater Smtpport}" Margin="10,5,5,5" FontWeight="Bold"></Label>
  78. <TextBox Grid.Row="0" Grid.Column="3" x:Name="txt_SmtpPort" Margin="5,5,5,5" Text=""></TextBox>
  79. <CheckBox x:Name="ck_isssl" Grid.Row="0" Grid.Column="5" Margin="10,10,5,5" Content="{common:Translater Usessl}"></CheckBox>
  80. <Label x:Name="lb_email_username" Grid.Row="1" Grid.Column="0" Content="{common:Translater Emailaddress}" Margin="5,5,5,5" FontWeight="Bold"></Label>
  81. <TextBox Grid.Row="1" Grid.Column="1" x:Name="txt_EmailUserName" Margin="5,5,5,5" Text=""></TextBox>
  82. <Label x:Name="lb_emal_password" Grid.Row="1" Grid.Column="2" Content="{common:Translater Emailpassword}" Margin="10,5,5,5" FontWeight="Bold"></Label>
  83. <TextBox Grid.Row="1" Grid.Column="3" x:Name="txt_EmailUserPassword" Margin="5,5,21,5" Text="" Grid.ColumnSpan="2"></TextBox>
  84. </Grid>
  85. </TabItem>
  86. <TabItem Header="{common:Translater Advancedsetup }">
  87. <StackPanel Height="Auto">
  88. <GroupBox Header="{common:Translater Services }" BorderBrush="Gray" Margin="4" BorderThickness="1" Foreground="CornflowerBlue">
  89. <UniformGrid x:Name="serviceCheckBoxGrid">
  90. </UniformGrid>
  91. </GroupBox>
  92. <GroupBox Header="{common:Translater Port }" BorderBrush="Gray" Margin="4" BorderThickness="1">
  93. <Grid Margin="5,5,5,5">
  94. <Grid.RowDefinitions>
  95. <RowDefinition Height="Auto"></RowDefinition>
  96. <RowDefinition Height="Auto"></RowDefinition>
  97. </Grid.RowDefinitions>
  98. <Grid.ColumnDefinitions>
  99. <ColumnDefinition Width="120"></ColumnDefinition>
  100. <ColumnDefinition Width="60"></ColumnDefinition>
  101. <ColumnDefinition Width="120"></ColumnDefinition>
  102. <ColumnDefinition Width="60"></ColumnDefinition>
  103. <ColumnDefinition Width="120"></ColumnDefinition>
  104. <ColumnDefinition Width="60"></ColumnDefinition>
  105. <ColumnDefinition Width="120"></ColumnDefinition>
  106. <ColumnDefinition Width="60"></ColumnDefinition>
  107. <ColumnDefinition Width="120"></ColumnDefinition>
  108. <ColumnDefinition Width="60"></ColumnDefinition>
  109. </Grid.ColumnDefinitions>
  110. <Label Grid.Row="0" x:Name="lb_GatewayPort" Grid.Column="0" Content="{common:Translater Mainport }" Margin="0,5,0,0" FontWeight="Bold"></Label>
  111. <TextBox Grid.Row="0" Grid.Column="1" x:Name="txt_GatewayPort" Margin="0,5,0,0" Text=""></TextBox>
  112. <Label Grid.Row="0" x:Name="lb_DatabasePort" Grid.Column="2" Content="{common:Translater Databaseport }" Margin="0,5,0,0" FontWeight="Bold"></Label>
  113. <TextBox Grid.Row="0" Grid.Column="3" x:Name="txt_DatabasePort" Margin="0,5,0,0" Text=""></TextBox>
  114. <Label Grid.Row="0" x:Name="lb_LogDbPort" Grid.Column="4" Content="{common:Translater Writelogport }" Margin="0,5,0,0" FontWeight="Bold"></Label>
  115. <TextBox Grid.Row="0" Grid.Column="5" x:Name="txt_LogDbPort" Margin="0,5,0,0" Text=""></TextBox>
  116. <Label Grid.Row="0" x:Name="lb_LogViewerPort" Grid.Column="6" Content="{common:Translater Readlogport }" Margin="0,5,0,0" FontWeight="Bold"></Label>
  117. <TextBox Grid.Row="0" Grid.Column="7" x:Name="txt_LogViewerPort" Margin="0,5,0,0" Text=""></TextBox>
  118. <Label Grid.Row="0" x:Name="lb_StatisticsPort" Grid.Column="8" Content="{common:Translater StatisticsApiPort }" Margin="0,5,0,0" FontWeight="Bold"></Label>
  119. <TextBox Grid.Row="0" Grid.Column="9" x:Name="txt_StatisticsPort" Margin="0,5,0,0" Text=""></TextBox>
  120. <Label Grid.Row="1" x:Name="lb_ManagementPort" Grid.Column="0" Content="{common:Translater ManagementPort }" Margin="0,5,0,0" FontWeight="Bold"></Label>
  121. <TextBox Grid.Row="1" Grid.Column="1" x:Name="txt_ManagementPort" Margin="0,5,0,0" Text=""></TextBox>
  122. </Grid>
  123. </GroupBox>
  124. <GroupBox Header="{common:Translater Filestore }" BorderBrush="Gray" Margin="4" BorderThickness="1" Foreground="CornflowerBlue">
  125. <Grid Margin="5,5,5,5">
  126. <Grid.RowDefinitions>
  127. <RowDefinition Height="Auto"></RowDefinition>
  128. <RowDefinition Height="Auto"></RowDefinition>
  129. <RowDefinition Height="Auto"></RowDefinition>
  130. <RowDefinition Height="Auto"></RowDefinition>
  131. </Grid.RowDefinitions>
  132. <Grid.ColumnDefinitions>
  133. <ColumnDefinition Width="150"></ColumnDefinition>
  134. <ColumnDefinition Width="200"></ColumnDefinition>
  135. <ColumnDefinition Width="20"></ColumnDefinition>
  136. <ColumnDefinition Width="150"></ColumnDefinition>
  137. <ColumnDefinition Width="200"></ColumnDefinition>
  138. <ColumnDefinition Width="20"></ColumnDefinition>
  139. </Grid.ColumnDefinitions>
  140. <Label Grid.Row="0" Grid.Column="0" Content="{common:Translater ChangeDrive }" Margin="0,5,0,0" FontWeight="Bold"></Label>
  141. <ComboBox Grid.Row="0" Grid.Column="1" x:Name="sel_StoreDrive" Margin="0,5,0,0" VerticalAlignment="Center" HorizontalAlignment="Left" SelectedIndex="3" SelectionChanged="Sel_StoreDrive_SelectionChanged">
  142. <TextBlock Text="A"/>
  143. <TextBlock Text="B"/>
  144. <TextBlock Text="C"/>
  145. <TextBlock Text="D"/>
  146. <TextBlock Text="E"/>
  147. <TextBlock Text="F"/>
  148. <TextBlock Text="G"/>
  149. <TextBlock Text="H"/>
  150. <TextBlock Text="I"/>
  151. <TextBlock Text="J"/>
  152. </ComboBox>
  153. <Label Grid.Row="1" x:Name="lb_StorageFolder" Grid.Column="0" Content="{common:Translater Store }" Margin="0,5,0,0" FontWeight="Bold"></Label>
  154. <TextBox Grid.Row="1" Grid.Column="1" x:Name="txt_StorageFolder" Margin="0,5,0,0" Text=""></TextBox>
  155. <Button Grid.Row="1" Grid.Column="2" x:Name="BtnStorageFolder" Margin="0,5,0,0" Click="BtnStorageFolder_Click">...</Button>
  156. <Label Grid.Row="1" x:Name="lb_CacheFolder" Grid.Column="3" Content="{common:Translater Cache }" Margin="20,5,0,0" FontWeight="Bold"></Label>
  157. <TextBox Grid.Row="1" Grid.Column="4" x:Name="txt_CacheFolder" Margin="0,5,0,0" Text=""></TextBox>
  158. <Button Grid.Row="1" Grid.Column="5" x:Name="BtnCacheFolder" Margin="0,5,0,0" Click="BtnCacheFolder_Click">...</Button>
  159. <Label Grid.Row="2" x:Name="lb_UpgradeFolder" Grid.Column="0" Content="{common:Translater Upgrade }" Margin="0,5,0,0" FontWeight="Bold"></Label>
  160. <TextBox Grid.Row="2" Grid.Column="1" x:Name="txt_UpgradeFolder" Margin="0,5,0,0" Text=""></TextBox>
  161. <Button Grid.Row="2" Grid.Column="2" x:Name="BtnUpgradeFolder" Margin="0,5,0,0" Click="BtnUpgradeFolder_Click">...</Button>
  162. <Label Grid.Row="2" x:Name="lb_ReportPostFolder" Grid.Column="3" Content="{common:Translater Report }" Margin="20,5,0,0" FontWeight="Bold"></Label>
  163. <TextBox Grid.Row="2" Grid.Column="4" x:Name="txt_ReportPostFolder" Margin="0,5,0,0" Text=""></TextBox>
  164. <Button Grid.Row="2" Grid.Column="5" x:Name="BtnReportPostFolder" Margin="0,5,0,0" Click="BtnReportPostFolder_Click">...</Button>
  165. <Label Grid.Row="3" x:Name="lb_MApiCacheFolder" Grid.Column="0" Content="{common:Translater ApiCache }" Margin="0,5,0,0" FontWeight="Bold"></Label>
  166. <TextBox Grid.Row="3" Grid.Column="1" x:Name="txt_MApiCacheFolder" Margin="0,5,0,0" Text=""></TextBox>
  167. <Button Grid.Row="3" Grid.Column="2" x:Name="BtnMApiCacheFolder" Margin="0,5,0,0" Click="BtnMApiCacheFolder_Click">...</Button>
  168. </Grid>
  169. </GroupBox>
  170. <GroupBox Header="{common:Translater ServiceApi }" BorderBrush="Gray" Margin="4" BorderThickness="1" Foreground="CornflowerBlue">
  171. <Grid>
  172. <Grid.RowDefinitions>
  173. <RowDefinition Height="Auto"></RowDefinition>
  174. <RowDefinition Height="Auto"></RowDefinition>
  175. <RowDefinition Height="Auto"></RowDefinition>
  176. <RowDefinition Height="Auto"></RowDefinition>
  177. <RowDefinition Height="Auto"></RowDefinition>
  178. <RowDefinition Height="Auto"></RowDefinition>
  179. <RowDefinition Height="Auto"></RowDefinition>
  180. <RowDefinition Height="Auto"></RowDefinition>
  181. <RowDefinition Height="Auto"></RowDefinition>
  182. </Grid.RowDefinitions>
  183. <Grid.ColumnDefinitions>
  184. <ColumnDefinition Width="160"></ColumnDefinition>
  185. <ColumnDefinition Width="320"></ColumnDefinition>
  186. <ColumnDefinition Width="160"></ColumnDefinition>
  187. <ColumnDefinition Width="320"></ColumnDefinition>
  188. </Grid.ColumnDefinitions>
  189. <Label Grid.Row="0" x:Name="lb_ApiUrl" Grid.Column="0" Content="{common:Translater Apiserviceurl }" Margin="5,5,5,5" FontWeight="Bold"></Label>
  190. <TextBox Grid.Row="0" Grid.Column="1" x:Name="txt_ApiUrl" Margin="5,5,5,5" Text=""></TextBox>
  191. <Label Grid.Row="0" x:Name="lb_ReportUrl" Grid.Column="2" Content="{common:Translater Reportviewurl }" Margin="5,5,5,5" FontWeight="Bold"></Label>
  192. <TextBox Grid.Row="0" Grid.Column="3" x:Name="txt_ReportUrl" Margin="5,5,5,5" Text=""></TextBox>
  193. <Label Grid.Row="1" x:Name="lb_DefaultStorageServer" Grid.Column="0" Content="{common:Translater Storeserviceurl }" Margin="5,5,5,5" FontWeight="Bold"></Label>
  194. <TextBox Grid.Row="1" Grid.Column="1" x:Name="txt_DefaultStorageServer" Margin="5,5,5,5" Text=""></TextBox>
  195. <Label Grid.Row="1" x:Name="lb_DefaultUpgradeServer" Grid.Column="2" Content="{common:Translater Upgradeserviceurl }" Margin="5,5,5,5" FontWeight="Bold"></Label>
  196. <TextBox Grid.Row="1" Grid.Column="3" x:Name="txt_DefaultUpgradeServer" Margin="5,5,5,5" Text=""></TextBox>
  197. <Label Grid.Row="2" x:Name="lb_DefaultDisplayServer" Grid.Column="0" Content="{common:Translater Displayserviceurl }" Margin="5,5,5,5" FontWeight="Bold"></Label>
  198. <TextBox Grid.Row="2" Grid.Column="1" x:Name="txt_DefaultDisplayServer" Margin="5,5,5,5" Text=""></TextBox>
  199. <Label Grid.Row="2" x:Name="lb_LiveTalkingServer" Grid.Column="2" Content="{common:Translater LiveTalkingserviceurl }" Margin="5,5,5,5" FontWeight="Bold"></Label>
  200. <TextBox Grid.Row="2" Grid.Column="3" x:Name="txt_LiveTalkingServer" Margin="5,5,5,5" Text=""></TextBox>
  201. <Label Grid.Row="3" x:Name="lb_MGetReportApiUrl" Grid.Column="0" Content="{common:Translater GetReportApiUrl }" Margin="5,5,5,5" FontWeight="Bold"></Label>
  202. <TextBox Grid.Row="3" Grid.Column="1" x:Name="txt_MGetReportApiUrl" Margin="5,5,5,5" Text=""></TextBox>
  203. <Label Grid.Row="3" x:Name="lb_MDownloadApiUrl" Grid.Column="2" Content="{common:Translater DownloadApiUrl }" Margin="5,5,5,5" FontWeight="Bold"></Label>
  204. <TextBox Grid.Row="3" Grid.Column="3" x:Name="txt_MDownloadApiUrl" Margin="5,5,5,5" Text=""></TextBox>
  205. <Label Grid.Row="4" x:Name="lb_GetUnityPayLink" Grid.Column="0" Content="{common:Translater GetUnityPayLink }" Margin="5,5,5,5" FontWeight="Bold"></Label>
  206. <TextBox Grid.Row="4" Grid.Column="1" x:Name="txt_GetUnityPayLink" Margin="5,5,5,5" Text=""></TextBox>
  207. </Grid>
  208. </GroupBox>
  209. </StackPanel>
  210. </TabItem>
  211. <TabItem Header="{common:Translater ServerManagementWeb }">
  212. <StackPanel Height="Auto">
  213. <GroupBox Header="{common:Translater Management }" BorderBrush="Gray" Margin="4" BorderThickness="1">
  214. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  215. <Grid.RowDefinitions>
  216. <RowDefinition Height="Auto"></RowDefinition>
  217. <RowDefinition Height="Auto"></RowDefinition>
  218. <RowDefinition Height="Auto"></RowDefinition>
  219. <RowDefinition Height="Auto"></RowDefinition>
  220. <RowDefinition Height="Auto"></RowDefinition>
  221. <RowDefinition Height="Auto"></RowDefinition>
  222. <RowDefinition Height="Auto"></RowDefinition>
  223. </Grid.RowDefinitions>
  224. <Grid.ColumnDefinitions>
  225. <ColumnDefinition Width="200"></ColumnDefinition>
  226. <ColumnDefinition Width="500"></ColumnDefinition>
  227. </Grid.ColumnDefinitions>
  228. <Label Grid.Row="0" x:Name="lb_ManagementStartPort" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater ManagementStartPort}" FontWeight="Bold"/>
  229. <TextBox Grid.Row="0" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_ManagementStartPort" Text="7096"/>
  230. <Label Grid.Row="1" x:Name="lb_ServerHost" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater ServerUrl}" FontWeight="Bold"/>
  231. <TextBox Grid.Row="1" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_ServerHost" Text="127.0.0.1"/>
  232. <Label Grid.Row="2" x:Name="lb_ServerPort" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater ServerPort}" FontWeight="Bold"/>
  233. <TextBox Grid.Row="2" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_ServerPort"/>
  234. <Label Grid.Row="3" x:Name="lb_GetReportApiUrl" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater GetReportApiUrl}" FontWeight="Bold"/>
  235. <TextBox Grid.Row="3" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_GetReportApiUrl"/>
  236. <Label Grid.Row="4" x:Name="lb_DownloadApiUrl" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater DownloadApiUrl}" FontWeight="Bold"/>
  237. <TextBox Grid.Row="4" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_DownloadApiUrl"/>
  238. <Label Grid.Row="5" x:Name="lb_ApiCacheFolder" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater ApiCacheFolder}" FontWeight="Bold"/>
  239. <TextBox Grid.Row="5" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_ApiCacheFolder"/>
  240. </Grid>
  241. </GroupBox>
  242. <GroupBox Header="{common:Translater VideoServer }" BorderBrush="Gray" Margin="4" BorderThickness="1">
  243. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  244. <Grid.RowDefinitions>
  245. <RowDefinition Height="Auto"></RowDefinition>
  246. <RowDefinition Height="Auto"></RowDefinition>
  247. <RowDefinition Height="Auto"></RowDefinition>
  248. <RowDefinition Height="Auto"></RowDefinition>
  249. <RowDefinition Height="Auto"></RowDefinition>
  250. <RowDefinition Height="Auto"></RowDefinition>
  251. </Grid.RowDefinitions>
  252. <Grid.ColumnDefinitions>
  253. <ColumnDefinition Width="200"></ColumnDefinition>
  254. <ColumnDefinition Width="500"></ColumnDefinition>
  255. </Grid.ColumnDefinitions>
  256. <Label Grid.Row="0" x:Name="lb_StoageVideoFolder" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater StoageVideoFolder}" FontWeight="Bold"/>
  257. <TextBox Grid.Row="0" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_StoageVideoFolder" Text="D:\\vCloudmedia"/>
  258. <Label Grid.Row="1" x:Name="lb_VideoServerUrl" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater VideoServerUrl}" FontWeight="Bold"/>
  259. <TextBox Grid.Row="1" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_ServerUrl" Text="http://localhost:8891"/>
  260. <Label Grid.Row="2" x:Name="lb_StorageProvider" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater StorageProvider}" FontWeight="Bold"/>
  261. <ComboBox Grid.Row="2" Grid.Column="1" Margin="5,5,5,5" x:Name="cb_StorageProvider" SelectedIndex="0" SelectionChanged="Cb_StorageProvider_SelectionChanged" Loaded="Cb_StorageProvider_Loaded">
  262. <TextBlock Name="Netease" Text="{common:Translater Netease}"/>
  263. <TextBlock Name="Common" Text="{common:Translater Common}"/>
  264. </ComboBox>
  265. <!--<Label Grid.Row="3" x:Name="lb_AppKey" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="AppKey" FontWeight="Bold"/>
  266. <TextBox Grid.Row="3" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_AppKey" Text="9c96274f5eca47f181bf24b6b737e43e" />
  267. <Label Grid.Row="4" x:Name="lb_AppSecret" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="AppSecret" FontWeight="Bold"/>
  268. <TextBox Grid.Row="4" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_AppSecret" Text="ac60a9a87d5f4f8c9fa1a55cfeb0826f" />-->
  269. <Label Grid.Row="5" x:Name="lb_VideoPort" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater VideoPort}" FontWeight="Bold"/>
  270. <TextBox Grid.Row="5" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_VideoPort" Text="8891" />
  271. </Grid>
  272. </GroupBox>
  273. </StackPanel>
  274. </TabItem>
  275. <TabItem Header="{common:Translater PaymentService}">
  276. <StackPanel Height="Auto">
  277. <GroupBox Header="{common:Translater Principal }" BorderBrush="Gray" Margin="4" BorderThickness="1">
  278. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  279. <Grid.RowDefinitions>
  280. <RowDefinition Height="Auto"></RowDefinition>
  281. <RowDefinition Height="Auto"></RowDefinition>
  282. <RowDefinition Height="Auto"></RowDefinition>
  283. </Grid.RowDefinitions>
  284. <Grid.ColumnDefinitions>
  285. <ColumnDefinition Width="150"></ColumnDefinition>
  286. <ColumnDefinition Width="60"></ColumnDefinition>
  287. <ColumnDefinition Width="240"></ColumnDefinition>
  288. <ColumnDefinition Width="150"></ColumnDefinition>
  289. <ColumnDefinition Width="60"></ColumnDefinition>
  290. <ColumnDefinition Width="240"></ColumnDefinition>
  291. </Grid.ColumnDefinitions>
  292. <Label Grid.Row="0" x:Name="lb_PayServiceUrl" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater PayServiceUrl}" FontWeight="Bold"/>
  293. <TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Margin="5,5,5,5" x:Name="txt_PayServiceUrl" Text=""/>
  294. <Label Grid.Row="0" x:Name="lb_PayServicePort" Grid.Column="3" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater PayServicePort}" FontWeight="Bold"/>
  295. <TextBox Grid.Row="0" Grid.Column="4" Grid.ColumnSpan="2" Margin="5,5,5,5" x:Name="txt_PayServicePort" Text=""/>
  296. <Label Grid.Row="1" x:Name="lb_PaySuccessNotifyUrl" Grid.Column="0" Grid.ColumnSpan="2" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater PaySuccessNotifyUrl}" FontWeight="Bold"/>
  297. <TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="5" Margin="5,5,5,5" x:Name="txt_PaySuccessNotifyUrl" Text=""/>
  298. <Label Grid.Row="2" x:Name="lb_RefundSuccessNotifyUrl" Grid.Column="0" Grid.ColumnSpan="2" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater RefundSuccessNotifyUrl}" FontWeight="Bold"/>
  299. <TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="5" Margin="5,5,5,5" x:Name="txt_RefundSuccessNotifyUrl" Text=""/>
  300. </Grid>
  301. </GroupBox>
  302. <GroupBox Header="{common:Translater Alipay }" BorderBrush="Gray" Margin="4" BorderThickness="1">
  303. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  304. <Grid.RowDefinitions>
  305. <RowDefinition Height="Auto"></RowDefinition>
  306. <RowDefinition Height="Auto"></RowDefinition>
  307. <RowDefinition Height="Auto"></RowDefinition>
  308. <RowDefinition Height="Auto"></RowDefinition>
  309. <RowDefinition Height="Auto"></RowDefinition>
  310. <RowDefinition Height="Auto"></RowDefinition>
  311. </Grid.RowDefinitions>
  312. <Grid.ColumnDefinitions>
  313. <ColumnDefinition Width="150"></ColumnDefinition>
  314. <ColumnDefinition Width="300"></ColumnDefinition>
  315. <ColumnDefinition Width="150"></ColumnDefinition>
  316. <ColumnDefinition Width="300"></ColumnDefinition>
  317. </Grid.ColumnDefinitions>
  318. <Label Grid.Row="0" x:Name="lb_Alipay_AppId" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater PayServiceUrl}" FontWeight="Bold"/>
  319. <TextBox Grid.Row="0" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_Alipay_AppId" Text=""/>
  320. <Label Grid.Row="0" x:Name="lb_Alipay_Gatewayurl" Grid.Column="2" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater Gatewayurl}" FontWeight="Bold"/>
  321. <TextBox Grid.Row="0" Grid.Column="3" Margin="5,5,5,5" x:Name="txt_Alipay_Gatewayurl" Text=""/>
  322. <Label Grid.Row="1" x:Name="lb_Alipay_SignType" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater SignType}" FontWeight="Bold"/>
  323. <TextBox Grid.Row="1" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_Alipay_SignType" Text=""/>
  324. <Label Grid.Row="1" x:Name="lb_Alipay_CharSet" Grid.Column="2" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater CharSet}" FontWeight="Bold"/>
  325. <TextBox Grid.Row="1" Grid.Column="3" Margin="5,5,5,5" x:Name="txt_Alipay_CharSet" Text=""/>
  326. <Label Grid.Row="2" x:Name="lb_Alipay_PrivateKey" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater PrivateKey}" FontWeight="Bold"/>
  327. <TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Margin="5,5,5,5" TextWrapping="Wrap" x:Name="txt_Alipay_PrivateKey" Height="40"/>
  328. <Label Grid.Row="3" x:Name="lb_Alipay_PublicKey" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater PublicKey}" FontWeight="Bold"/>
  329. <TextBox Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="3" Margin="5,5,5,5" TextWrapping="Wrap" x:Name="txt_Alipay_PublicKey" Text="" Height="40"/>
  330. </Grid>
  331. </GroupBox>
  332. <GroupBox Header="{common:Translater Paypal }" BorderBrush="Gray" Margin="4" BorderThickness="1">
  333. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  334. <Grid.RowDefinitions>
  335. <RowDefinition Height="Auto"></RowDefinition>
  336. <RowDefinition Height="Auto"></RowDefinition>
  337. </Grid.RowDefinitions>
  338. <Grid.ColumnDefinitions>
  339. <ColumnDefinition Width="150"></ColumnDefinition>
  340. <ColumnDefinition Width="300"></ColumnDefinition>
  341. <ColumnDefinition Width="150"></ColumnDefinition>
  342. <ColumnDefinition Width="300"></ColumnDefinition>
  343. </Grid.ColumnDefinitions>
  344. <Label Grid.Row="0" x:Name="lb_Paypal_ClientId" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater ClientId}" FontWeight="Bold"/>
  345. <TextBox Grid.Row="0" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_Paypal_ClientId" Text=""/>
  346. <Label Grid.Row="0" x:Name="lb_Paypal_ClientSecret" Grid.Column="2" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater ClientSecret}" FontWeight="Bold"/>
  347. <TextBox Grid.Row="0" Grid.Column="3" Margin="5,5,5,5" x:Name="txt_Paypal_ClientSecret" Text=""/>
  348. </Grid>
  349. </GroupBox>
  350. <GroupBox Header="{common:Translater WechatPay }" BorderBrush="Gray" Margin="4" BorderThickness="1">
  351. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  352. <Grid.RowDefinitions>
  353. <RowDefinition Height="Auto"></RowDefinition>
  354. <RowDefinition Height="Auto"></RowDefinition>
  355. <RowDefinition Height="Auto"></RowDefinition>
  356. <RowDefinition Height="Auto"></RowDefinition>
  357. <RowDefinition Height="Auto"></RowDefinition>
  358. <RowDefinition Height="Auto"></RowDefinition>
  359. </Grid.RowDefinitions>
  360. <Grid.ColumnDefinitions>
  361. <ColumnDefinition Width="150"></ColumnDefinition>
  362. <ColumnDefinition Width="300"></ColumnDefinition>
  363. <ColumnDefinition Width="150"></ColumnDefinition>
  364. <ColumnDefinition Width="300"></ColumnDefinition>
  365. </Grid.ColumnDefinitions>
  366. <Label Grid.Row="0" x:Name="lb_Wechat_AppID" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater AppID}" FontWeight="Bold"/>
  367. <TextBox Grid.Row="0" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_Wechat_AppID" Text=""/>
  368. <Label Grid.Row="0" x:Name="lb_Wechat_MchID" Grid.Column="2" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater MchID}" FontWeight="Bold"/>
  369. <TextBox Grid.Row="0" Grid.Column="3" Margin="5,5,5,5" x:Name="txt_Wechat_MchID" Text=""/>
  370. <Label Grid.Row="1" x:Name="lb_Wechat_Key" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater Key}" FontWeight="Bold"/>
  371. <TextBox Grid.Row="1" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_Wechat_Key" Text=""/>
  372. <CheckBox Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="25,5,5,5" x:Name="ck_UseSandBox" Content="{common:Translater UseSandBox}" ></CheckBox>
  373. <Label Grid.Row="2" x:Name="lb_Wechat_AppSecret" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater AppSecret}" FontWeight="Bold"/>
  374. <TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Margin="5,5,5,5" x:Name="txt_Wechat_AppSecret" Text="" Height="40"/>
  375. <Label Grid.Row="3" x:Name="lb_Wechat_SSlCertData" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater SSlCertData}" FontWeight="Bold"/>
  376. <Label Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="2" Margin="5,5,5,5" x:Name="txt_Wechat_SSlCertData" Height="40"/>
  377. <Button Grid.Row="3" Grid.Column="1" Margin="55,5,55,5" x:Name="btn_UploadCert" Content="{common:Translater UploadCertificate}" Click="Btn_UploadCert_Click" />
  378. <Label Grid.Row="4" x:Name="lb_Wechat_SSlCertPassword" Grid.Column="0" Margin="5,5,5,5" VerticalAlignment="Center" Content="{common:Translater SSlCertPassword}" FontWeight="Bold"/>
  379. <TextBox Grid.Row="4" Grid.Column="1" Margin="5,5,5,5" x:Name="txt_Wechat_SSlCertPassword" Text=""/>
  380. </Grid>
  381. </GroupBox>
  382. </StackPanel>
  383. </TabItem>
  384. <TabItem Header="{common:Translater IPWhiteList}">
  385. <Grid>
  386. <Grid.RowDefinitions>
  387. <RowDefinition Height ="50"/>
  388. <RowDefinition Height="*"/>
  389. </Grid.RowDefinitions>
  390. <Grid.ColumnDefinitions>
  391. <ColumnDefinition Width="100"/>
  392. <ColumnDefinition Width="300"/>
  393. <ColumnDefinition Width="*"/>
  394. </Grid.ColumnDefinitions>
  395. <Button x:Name="btn_Add" Content="{common:Translater Add }" Grid.Row="0" Grid.Column="0" FontSize="14" Margin="5,5,5,5" Click="Btn_Add_Click" />
  396. <TextBox x:Name="txt_IpAddress" Grid.Row="0" Grid.Column="1" Height="30" Margin="5,5,5,5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" ></TextBox>
  397. <DataGrid Name="dtgIpWhiteList" IsReadOnly="True" AutoGenerateColumns="False" Grid.Row="1" Grid.ColumnSpan="3" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  398. <DataGrid.Columns>
  399. <DataGridTextColumn Header="IP" Width="80*" Binding="{Binding IP}" />
  400. <DataGridTemplateColumn x:Name="UserAction" Header="" Width="10*">
  401. <DataGridTemplateColumn.CellTemplate>
  402. <DataTemplate>
  403. <StackPanel Orientation="Horizontal">
  404. <Button x:Name="DeleteIP" Click="DeleteIP_Click" Content="{common:Translater Delete}" Height="34" Width="80" FontSize="14" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  405. </Button>
  406. </StackPanel>
  407. </DataTemplate>
  408. </DataGridTemplateColumn.CellTemplate>
  409. </DataGridTemplateColumn>
  410. </DataGrid.Columns>
  411. </DataGrid>
  412. </Grid>
  413. </TabItem>
  414. <TabItem Header="{common:Translater Languages}">
  415. <ComboBox Width="130" Height="40" x:Name="cb_ChooseLanguage" HorizontalAlignment="Center" VerticalAlignment="Center" DropDownClosed="Cb_ChooseLanguage_DropDownClosed" SelectedIndex="0" FontSize="24">
  416. <TextBlock x:Name="tb_English" Text="{common:Translater English}" Tag="English" />
  417. <TextBlock x:Name="tb_Chinese" Text="{common:Translater Chinese}" Tag="Chinese" />
  418. </ComboBox>
  419. </TabItem>
  420. </TabControl>
  421. <Grid Grid.Row="1" Grid.Column="0" DockPanel.Dock="Bottom" HorizontalAlignment="Center" VerticalAlignment="Center">
  422. <Grid.RowDefinitions>
  423. <RowDefinition Height="Auto"></RowDefinition>
  424. </Grid.RowDefinitions>
  425. <Grid.ColumnDefinitions>
  426. <ColumnDefinition Width="30*"></ColumnDefinition>
  427. <ColumnDefinition Width="50*"></ColumnDefinition>
  428. </Grid.ColumnDefinitions>
  429. <Grid Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center">
  430. <Grid.RowDefinitions>
  431. <RowDefinition Height="Auto"></RowDefinition>
  432. </Grid.RowDefinitions>
  433. <Grid.ColumnDefinitions>
  434. <ColumnDefinition Width="Auto"></ColumnDefinition>
  435. <ColumnDefinition Width="Auto"></ColumnDefinition>
  436. </Grid.ColumnDefinitions>
  437. <CheckBox Grid.Row="0" Grid.Column="0" x:Name="cb_useTestServer" Content="{common:Translater UseTestServer }" Margin="5,5,5,5" VerticalAlignment="Center" HorizontalAlignment="Center" IsChecked="False"/>
  438. <CheckBox Grid.Row="0" Grid.Column="1" x:Name="cb_isBak" Content="{common:Translater InstallHint }" Margin="5,5,5,5" VerticalAlignment="Center" HorizontalAlignment="Center" IsChecked="True"/>
  439. </Grid>
  440. <Grid Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  441. <Grid.RowDefinitions>
  442. <RowDefinition Height="Auto"></RowDefinition>
  443. </Grid.RowDefinitions>
  444. <Grid.ColumnDefinitions>
  445. <ColumnDefinition Width="Auto"></ColumnDefinition>
  446. <ColumnDefinition Width="Auto"></ColumnDefinition>
  447. <ColumnDefinition Width="Auto"></ColumnDefinition>
  448. </Grid.ColumnDefinitions>
  449. <Button x:Name="Install" Grid.Row="0" Grid.Column="0" Content="{common:Translater Install }" Width="200" Height="50" Margin="15,15,15,15" HorizontalAlignment="Center" FontSize="20" Click="Install_Click" />
  450. <Button x:Name="Export" Grid.Row="0" Grid.Column="1" Content="{common:Translater Export }" Width="155" Height="50" Margin="15,15,15,15" HorizontalAlignment="Center" FontSize="20" Click="Export_Click" />
  451. <Button x:Name="Exit" Grid.Row="0" Grid.Column="2" Content="{common:Translater Exit }" Width="80" Height="50" Margin="15,15,15,15" HorizontalAlignment="Center" FontSize="20" Click="Exit_Click" />
  452. </Grid>
  453. </Grid>
  454. </DockPanel>
  455. </Grid>
  456. </common:BaseWindow>