|
@@ -3,65 +3,70 @@
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
- xmlns:local="clr-namespace:fisp.Controls"
|
|
|
+ xmlns:busyIndicator="https://github.com/moh3ngolshani/BusyIndicator"
|
|
|
mc:Ignorable="d"
|
|
|
Title="FLYINSONO PUBLISH TOOL" Height="200" Width="640" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Loaded="OnLoaded">
|
|
|
- <Grid>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <StackPanel Margin="8" Grid.Row="0" Orientation="Horizontal">
|
|
|
- <TextBlock Margin="0,4,4,4" Text="Target: " FontSize="14"></TextBlock>
|
|
|
- <ComboBox x:Name="TargetMethod" Width="100" SelectedValue="Embedded" Height="32" Margin="0,0,8,0" Padding="4,4,4,4" VerticalContentAlignment="Center" SelectionChanged="ComboBox_SelectionChanged">
|
|
|
- <ComboBoxItem Content="Embedded"></ComboBoxItem>
|
|
|
- <ComboBoxItem Content="Public" ></ComboBoxItem>
|
|
|
- </ComboBox>
|
|
|
- <TextBlock VerticalAlignment="Center" Text="Folder:" FontSize="14"/>
|
|
|
- <TextBox x:Name="SourceFolder" Height="32" Margin="8,0,0,0" Width="300" IsReadOnly="True" VerticalContentAlignment="Center" Padding="2" FontSize="14"/>
|
|
|
- <Button Content="..." Width="64" Click="OnChooseSourceFolderClick"/>
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Grid.Row="1" Margin="8" Orientation="Horizontal">
|
|
|
- <TextBlock Margin="16,0,0,0" VerticalAlignment="Center" Text="Package Name:" FontSize="14"/>
|
|
|
- <TextBox x:Name="PackageName" Margin="6" BorderBrush="Transparent" BorderThickness="0" IsReadOnly="true" Text="0.0.0.0" Foreground="YellowGreen" FontSize="18" TextChanged="PackageName_TextChanged"/>
|
|
|
- <Button Content="Package" FontSize="14" Margin="8,0,8,0" Click="OnPackageClick"></Button>
|
|
|
- <TextBlock x:Name="PackageConsole" Visibility="Collapsed" VerticalAlignment="Center" />
|
|
|
- </StackPanel>
|
|
|
- <!--CDN上传部分 Start-->
|
|
|
- <Grid Grid.Row="2" x:Name="GridPublish" Visibility="Collapsed">
|
|
|
+ <busyIndicator:BusyMask x:Name="BusyIndicator"
|
|
|
+ IsBusy="False"
|
|
|
+ IndicatorType="ThreeDots"
|
|
|
+ BusyContent="Please wait..."
|
|
|
+ BusyContentMargin="0,20,0,0"
|
|
|
+ IsBusyAtStartup="False" >
|
|
|
+ <Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
<RowDefinition Height="Auto" />
|
|
|
<RowDefinition Height="Auto" />
|
|
|
<RowDefinition Height="Auto" />
|
|
|
</Grid.RowDefinitions>
|
|
|
- <Grid Margin="8" Grid.Row="0">
|
|
|
+ <Button Grid.Row="0" x:Name="ButtonMaintenance" Content="Maintenance" Margin="8,8,8,8" Click="OnMaintenanceClick"></Button>
|
|
|
+ <StackPanel Margin="8" Grid.Row="1" Orientation="Horizontal">
|
|
|
+ <TextBlock Margin="0,4,4,4" Text="Target: " FontSize="14"></TextBlock>
|
|
|
+ <ComboBox x:Name="ComboBoxChannel" Width="100" SelectedValue="Embedded" Height="32" Margin="0,0,8,0" Padding="4,4,4,4" VerticalContentAlignment="Center" SelectionChanged="OnChannelSelectionChanged">
|
|
|
+ <ComboBoxItem Content="Embedded"></ComboBoxItem>
|
|
|
+ <ComboBoxItem Content="Public" ></ComboBoxItem>
|
|
|
+ </ComboBox>
|
|
|
+ <TextBlock VerticalAlignment="Center" Text="Folder:" FontSize="14"/>
|
|
|
+ <TextBox x:Name="SourceFolder" Height="32" Margin="8,0,0,0" Width="300" IsReadOnly="True" VerticalContentAlignment="Center" Padding="2" FontSize="14"/>
|
|
|
+ <Button Content="..." Width="64" Click="OnChooseSourceFolderClick"/>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Grid.Row="2" Margin="8" Orientation="Horizontal">
|
|
|
+ <TextBlock Margin="16,0,0,0" VerticalAlignment="Center" Text="Package Name:" FontSize="14"/>
|
|
|
+ <TextBox x:Name="PackageName" Margin="6" BorderBrush="Transparent" BorderThickness="0" IsReadOnly="true" Text="0.0.0.0" Foreground="YellowGreen" FontSize="18" TextChanged="OnPackageNameChanged"/>
|
|
|
+ <Button x:Name="ButtonPackage" Content="Package" FontSize="14" Margin="8,0,8,0" Click="OnPackageClick"></Button>
|
|
|
+ <TextBlock x:Name="PackageConsole" Visibility="Collapsed" VerticalAlignment="Center" />
|
|
|
+ </StackPanel>
|
|
|
+ <!--CDN上传部分 Start-->
|
|
|
+ <Grid Grid.Row="3" x:Name="GridPublish" Visibility="Collapsed">
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
- <RowDefinition Height="16"/>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
</Grid.RowDefinitions>
|
|
|
- <TextBlock Grid.Row="0" Text="Uploading Progress" FontSize="18" FontWeight="Bold"/>
|
|
|
- <StackPanel Grid.Row="1">
|
|
|
- <TextBlock Margin="0,4,4,4" x:Name="UploadingProgressText"/>
|
|
|
- <ProgressBar x:Name="UploadingProgress" Height="36" VerticalAlignment="Center"/>
|
|
|
- </StackPanel>
|
|
|
- <TextBlock Grid.Row="3" Text="Total Progress" FontSize="18" FontWeight="Bold"/>
|
|
|
- <StackPanel Grid.Row="4">
|
|
|
- <TextBlock Margin="0,4,4,4" x:Name="TotalProgressText"/>
|
|
|
- <ProgressBar x:Name="TotalProgress" Height="36" VerticalAlignment="Center"/>
|
|
|
- </StackPanel>
|
|
|
+ <Grid Margin="8" Grid.Row="0">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="16"/>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <TextBlock Grid.Row="0" Text="Uploading Progress" FontSize="18" FontWeight="Bold"/>
|
|
|
+ <StackPanel Grid.Row="1">
|
|
|
+ <TextBlock Margin="0,4,4,4" x:Name="UploadingProgressText"/>
|
|
|
+ <ProgressBar x:Name="UploadingProgress" Height="36" VerticalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ <TextBlock Grid.Row="3" Text="Total Progress" FontSize="18" FontWeight="Bold"/>
|
|
|
+ <StackPanel Grid.Row="4">
|
|
|
+ <TextBlock Margin="0,4,4,4" x:Name="TotalProgressText"/>
|
|
|
+ <ProgressBar x:Name="TotalProgress" Height="36" VerticalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ <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"/>
|
|
|
+ <Button Grid.Row="2" x:Name="ButtonPublish" Height="48" Margin="8" Content="PUBLISH" VerticalAlignment="Center" FontSize="24" FontWeight="Bold" Click="OnPlulishClick"/>
|
|
|
</Grid>
|
|
|
- <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"/>
|
|
|
- <Button Grid.Row="2" Height="48" Margin="8" Content="PUBLISH" VerticalAlignment="Center" FontSize="24" FontWeight="Bold" Click="OnPlulishClick"/>
|
|
|
+ <!--CDN上传部分 End-->
|
|
|
</Grid>
|
|
|
- <!--CDN上传部分 End-->
|
|
|
- <Viewbox Grid.Row="3" Width="50" Height="50" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
- <local:LoadingControl x:Name="Loading" Visibility="Visible"></local:LoadingControl>
|
|
|
- </Viewbox>
|
|
|
- <!--<local:Loading x:Name="Loading" Grid.Row="3" Visibility="Visible"/>-->
|
|
|
- </Grid>
|
|
|
+ </busyIndicator:BusyMask>
|
|
|
</Window>
|