aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Managers/IStatusManager.cs
blob: 691e573ec8e563e9111e9f843edb540c37578cc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.AzureUtils.UI.Managers
{
    public interface IStatusManager
    {
        event EventHandler<AzureUtilsProgressEventArgs> StatusUpdated;

        void UpdateStatus(AzureUtilsStage stage, String message, bool isIndeterminate = false);

        void UpdateStatus(AzureUtilsProgressEventArgs progress);

        void UpdateStatus(Exception ex);
    }
}
rRadius="10"> <Border.Effect> <DropShadowEffect ShadowDepth="0" BlurRadius="10" /> </Border.Effect> <Grid> <Grid.RowDefinitions> <RowDefinition Height="80"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid> <StackPanel Orientation="Horizontal" Margin="10"> <Image Source="/Images/exception.png" RenderOptions.BitmapScalingMode="Fant"></Image> <TextBlock Text="Machine Studio Error" VerticalAlignment="Center" Margin="10 0 0 0" FontSize="20"></TextBlock> </StackPanel> </Grid> <Grid Grid.Row="1" Margin="10 0 10 10"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="50"/> </Grid.RowDefinitions> <Grid> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="223*"/> </Grid.RowDefinitions> <Grid> <TextBlock TextWrapping="Wrap" VerticalAlignment="Center" Margin="0 0 0 0"> <Run>Machine Studio encountered an unexpected error. It is recommended to restart the application in order to resolve the issue.</Run> </TextBlock> </Grid> <Grid Grid.Row="1" Margin="0 10 0 0"> <TextBox Style="{x:Null}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto" BorderBrush="#515151" IsReadOnly="True" AcceptsReturn="True" Foreground="#202020" Padding="2" TextWrapping="Wrap" Text="{Binding Exception}"></TextBox> </Grid> </Grid> <Grid Grid.Row="1"> <StackPanel HorizontalAlignment="Left" Orientation="Horizontal"> <Button Width="140" Command="{Binding ResolveCommand}" CommandParameter="{x:Static local:ExceptionResolutions.Ignore}">Ignore</Button> </StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> <Button x:Name="btnReport" Style="{StaticResource MaterialDesignFlatButton}" Width="150" Command="{Binding ResolveCommand}" CommandParameter="{x:Static local:ExceptionResolutions.Report}"> <StackPanel Orientation="Horizontal"> <Image Source="/Images/bug.png" RenderOptions.BitmapScalingMode="Fant"></Image> <TextBlock Foreground="#FF5C5C" Margin="10 0 0 0" VerticalAlignment="Center">Report Issue</TextBlock> </StackPanel> </Button> <Button Margin="5 0 0 0" Width="140" Command="{Binding ResolveCommand}" CommandParameter="{x:Static local:ExceptionResolutions.Shutdown}">Shutdown</Button> <Button Margin="5 0 0 0" Width="140" Command="{Binding ResolveCommand}" CommandParameter="{x:Static local:ExceptionResolutions.Restart}">Restart</Button> </StackPanel> </Grid> </Grid> </Grid> </Border> </Grid> </Window>