mirror of
https://github.com/azaion/annotations.git
synced 2026-04-23 03:36:31 +00:00
Errors sending to UI
notifying client of AI model conversion
This commit is contained in:
@@ -7,13 +7,39 @@
|
||||
Title="Azaion Annotator" Height="800" Width="1100"
|
||||
WindowState="Maximized"
|
||||
>
|
||||
|
||||
<TextBlock Padding="20 80"
|
||||
Background="Black"
|
||||
Foreground="Brown"
|
||||
TextWrapping="Wrap"
|
||||
FontSize="32"
|
||||
TextAlignment="Center">
|
||||
<Grid Background="Black"
|
||||
ShowGridLines="False">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"></RowDefinition>
|
||||
<RowDefinition Height="*"></RowDefinition>
|
||||
<RowDefinition Height="*"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock
|
||||
Grid.Row="0"
|
||||
Padding="20 20"
|
||||
Foreground="Brown"
|
||||
TextWrapping="Wrap"
|
||||
FontSize="30"
|
||||
TextAlignment="Center">
|
||||
Під час запуску виникла помилка!
|
||||
<LineBreak /><LineBreak />
|
||||
Error happened during the launch!
|
||||
</TextBlock>
|
||||
<TextBlock
|
||||
Grid.Row="1"
|
||||
Padding="10"
|
||||
TextAlignment="Center"
|
||||
Foreground="Red"
|
||||
TextWrapping="Wrap"
|
||||
FontSize="20"
|
||||
Name="TbError"
|
||||
Text="{Binding ErrorMessage}"/>
|
||||
<TextBlock
|
||||
Grid.Row="2"
|
||||
TextAlignment="Center"
|
||||
Foreground="Brown"
|
||||
TextWrapping="Wrap"
|
||||
FontSize="20">
|
||||
Будь ласка перевірте правильність email чи паролю! <LineBreak />
|
||||
Також зауважте, що запуск можливий лише з одного конкретного компьютера, копіювання заборонене! <LineBreak/> <LineBreak/>
|
||||
Для подальшого вирішення проблеми ви можете зв'язатися з нами: hi@azaion.com
|
||||
@@ -21,5 +47,6 @@
|
||||
Please check your email or password! <LineBreak />
|
||||
The program is restricted to start only from particular hardware, copying is forbidden! <LineBreak/> <LineBreak/>
|
||||
For the further guidance, please feel free to contact us: hi@azaion.com
|
||||
</TextBlock>
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
namespace Azaion.Annotator;
|
||||
using Azaion.Common.Events;
|
||||
using MediatR;
|
||||
|
||||
public class AnnotatorEventHandler;
|
||||
namespace Azaion.Annotator;
|
||||
|
||||
public class AnnotatorEventHandler(Annotator annotator) : INotificationHandler<LoadErrorEvent>
|
||||
{
|
||||
public Task Handle(LoadErrorEvent notification, CancellationToken cancellationToken)
|
||||
{
|
||||
annotator.Dispatcher.Invoke(() => annotator.TbError.Text = notification.Error);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user