MainWindow.xaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <Window x:Class="fisp.MainWindow"
  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:busyIndicator="https://github.com/moh3ngolshani/BusyIndicator"
  7. mc:Ignorable="d"
  8. Title="FLYINSONO PUBLISH TOOL" Height="200" Width="640" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Loaded="OnLoaded">
  9. <busyIndicator:BusyMask x:Name="BusyIndicator"
  10. IsBusy="False"
  11. IndicatorType="ThreeDots"
  12. BusyContent="Please wait..."
  13. BusyContentMargin="0,20,0,0"
  14. IsBusyAtStartup="False" >
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="40" />
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="Auto" />
  20. <RowDefinition Height="Auto" />
  21. </Grid.RowDefinitions>
  22. <Button Grid.Row="0" x:Name="ButtonMaintenance" Content="Maintenance" Margin="8,8,8,8" Click="OnMaintenanceClick"></Button>
  23. <StackPanel Margin="8" Grid.Row="1" Orientation="Horizontal">
  24. <TextBlock Margin="0,4,4,4" Text="Target: " FontSize="14"></TextBlock>
  25. <ComboBox x:Name="ComboBoxChannel" Width="100" SelectedValue="Embedded" Height="32" Margin="0,0,8,0" Padding="4,4,4,4" VerticalContentAlignment="Center" SelectionChanged="OnChannelSelectionChanged">
  26. <ComboBoxItem Content="Embedded"></ComboBoxItem>
  27. <ComboBoxItem Content="Public" ></ComboBoxItem>
  28. </ComboBox>
  29. <TextBlock VerticalAlignment="Center" Text="Folder:" FontSize="14"/>
  30. <TextBox x:Name="SourceFolder" Height="32" Margin="8,0,0,0" Width="300" IsReadOnly="True" VerticalContentAlignment="Center" Padding="2" FontSize="14"/>
  31. <Button x:Name="ButtonChooseSourceFolder" Content="..." Width="64" Click="OnChooseSourceFolderClick"/>
  32. </StackPanel>
  33. <StackPanel Grid.Row="2" Margin="8" Orientation="Horizontal">
  34. <TextBlock Margin="16,0,0,0" VerticalAlignment="Center" Text="Package Name:" FontSize="14"/>
  35. <TextBox x:Name="PackageName" Margin="6" BorderBrush="Transparent" BorderThickness="0" IsReadOnly="true" Text="0.0.0.0" Foreground="YellowGreen" FontSize="18" TextChanged="OnPackageNameChanged"/>
  36. <Button x:Name="ButtonPackage" Content="Package" FontSize="14" Margin="8,0,8,0" Click="OnPackageClick"></Button>
  37. <TextBlock x:Name="PackageConsole" Visibility="Collapsed" VerticalAlignment="Center" />
  38. </StackPanel>
  39. <!--CDN上传部分 Start-->
  40. <Grid Grid.Row="3" x:Name="GridPublish" Visibility="Collapsed">
  41. <Grid.RowDefinitions>
  42. <RowDefinition Height="Auto" />
  43. <RowDefinition Height="Auto" />
  44. <RowDefinition Height="Auto" />
  45. <RowDefinition Height="Auto" />
  46. </Grid.RowDefinitions>
  47. <Grid Margin="8" Grid.Row="0">
  48. <Grid.RowDefinitions>
  49. <RowDefinition Height="Auto"/>
  50. <RowDefinition Height="Auto"/>
  51. <RowDefinition Height="16"/>
  52. <RowDefinition Height="Auto"/>
  53. <RowDefinition Height="Auto"/>
  54. </Grid.RowDefinitions>
  55. <TextBlock Grid.Row="0" Text="Uploading Progress" FontSize="18" FontWeight="Bold"/>
  56. <StackPanel Grid.Row="1">
  57. <TextBlock Margin="0,4,4,4" x:Name="UploadingProgressText"/>
  58. <ProgressBar x:Name="UploadingProgress" Height="36" VerticalAlignment="Center"/>
  59. </StackPanel>
  60. <TextBlock Grid.Row="3" Text="Total Progress" FontSize="18" FontWeight="Bold"/>
  61. <StackPanel Grid.Row="4">
  62. <TextBlock Margin="0,4,4,4" x:Name="TotalProgressText"/>
  63. <ProgressBar x:Name="TotalProgress" Height="36" VerticalAlignment="Center"/>
  64. </StackPanel>
  65. </Grid>
  66. <TextBox Grid.Row="1" x:Name="PublishUrl" Margin="6" BorderBrush="Transparent" BorderThickness="0" IsReadOnly="true" Text="https://app.fis.plus/flyinsono20230711/" Foreground="Blue" FontSize="18"/>
  67. <Button Grid.Row="2" x:Name="ButtonPublish" Height="48" Margin="8" Content="PUBLISH" VerticalAlignment="Center" FontSize="24" FontWeight="Bold" Click="OnPlulishClick"/>
  68. </Grid>
  69. <!--CDN上传部分 End-->
  70. </Grid>
  71. </busyIndicator:BusyMask>
  72. </Window>