diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-09-05 17:28:54 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-09-05 17:28:54 +0300 |
| commit | 5c330a1d78b9d6108544b94e756a6457f162a468 (patch) | |
| tree | 305c0d6cc05c8f70b2e848f7536a31c54fa0ded3 /Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineUpdateView.xaml | |
| parent | 2dff0c785e0ac326d01337b5399a8ab5766e611e (diff) | |
| download | Tango-5c330a1d78b9d6108544b94e756a6457f162a468.tar.gz Tango-5c330a1d78b9d6108544b94e756a6457f162a468.zip | |
Added missing event type.
Working on PPC DB update..
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineUpdateView.xaml')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineUpdateView.xaml | 46 |
1 files changed, 40 insertions, 6 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineUpdateView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineUpdateView.xaml index ce1cee424..06343814d 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineUpdateView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineUpdateView.xaml @@ -32,14 +32,35 @@ <Grid controls:NavigationControl.NavigationName="UpdateAvailableView"> <StackPanel HorizontalAlignment="Center" Margin="0 40 0 0"> - <TextBlock FontSize="{StaticResource TangoHeaderFontSize}"> - <Run>Version</Run> - <Run Foreground="{StaticResource TangoPrimaryAccentBrush}" Text="{Binding LatestVersion}"></Run> - <Run>is available</Run> - </TextBlock> + <ContentControl> + <ContentControl.Style> + <Style TargetType="ContentControl"> + <Setter Property="Content"> + <Setter.Value> + <TextBlock FontSize="{StaticResource TangoHeaderFontSize}"> + <Run>Version</Run> + <Run Foreground="{StaticResource TangoPrimaryAccentBrush}" Text="{Binding LatestVersion}"></Run> + <Run>is available</Run> + </TextBlock> + </Setter.Value> + </Setter> + <Style.Triggers> + <DataTrigger Binding="{Binding IsDbUpdate}" Value="True"> + <Setter Property="Content"> + <Setter.Value> + <TextBlock FontSize="{StaticResource TangoHeaderFontSize}"> + Database update is available + </TextBlock> + </Setter.Value> + </Setter> + </DataTrigger> + </Style.Triggers> + </Style> + </ContentControl.Style> + </ContentControl> <TextBlock FontSize="{StaticResource TangoTitleFontSize}" Margin="0 40 0 0"> - Updating you machine can improve the following: + Updating your machine can improve the following: </TextBlock> <StackPanel Margin="0 40 0 0"> @@ -87,6 +108,8 @@ <TextBlock VerticalAlignment="Center" Width="600" TextWrapping="Wrap" TextAlignment="Center" Margin="0 10 0 0" Foreground="{StaticResource TangoErrorBrush}" FontSize="{StaticResource TangoTitleFontSize}">An error occurred while trying to check for updates. Please check your internet connection and try again.</TextBlock> <touch:TouchButton Margin="0 200 0 0" Padding="20" Width="300" CornerRadius="35" Command="{Binding RestartCommand}">TRY AGAIN</touch:TouchButton> + + <touch:TouchButton Style="{StaticResource TangoFlatButton}" Margin="0 200 0 0" Padding="20" Width="300" HorizontalContentAlignment="Center" CornerRadius="35" Command="{Binding ToApplicationCommand}">Back To Application</touch:TouchButton> </StackPanel> </Grid> @@ -105,6 +128,15 @@ </StackPanel> </Grid> + <Grid controls:NavigationControl.NavigationName="UpdateDbProgressView"> + <StackPanel HorizontalAlignment="Center" Margin="0 200 0 0"> + <touch:TouchBusyIndicator Width="250" Height="250" IsIndeterminate="{Binding IsVisible}" /> + <TextBlock DockPanel.Dock="Top" Margin="0 100" FontSize="{StaticResource TangoHeaderFontSize}" HorizontalAlignment="Center" TextWrapping="Wrap" TextAlignment="Center"> + Updating database... + </TextBlock> + </StackPanel> + </Grid> + <Grid controls:NavigationControl.NavigationName="UpdateCompletedView"> <StackPanel HorizontalAlignment="Center" Margin="0 50 0 0"> <touch:TouchIcon Icon="Check" Foreground="{StaticResource TangoPrimaryAccentBrush}" Width="70" Height="70" /> @@ -120,6 +152,8 @@ <TextBlock VerticalAlignment="Center" Margin="0 10 0 0" Foreground="{StaticResource TangoErrorBrush}" FontSize="{StaticResource TangoTitleFontSize}">An error occurred while trying to update the machine.</TextBlock> <touch:TouchButton Margin="0 200 0 0" Padding="20" Width="300" CornerRadius="35" Command="{Binding RestartCommand}">TRY AGAIN</touch:TouchButton> + + <touch:TouchButton Style="{StaticResource TangoFlatButton}" Margin="0 200 0 0" Padding="20" Width="300" HorizontalContentAlignment="Center" CornerRadius="35" Command="{Binding ToApplicationCommand}">Back To Application</touch:TouchButton> </StackPanel> </Grid> |
