mirror of
https://github.com/frosch95/K8sFileBrowser.git
synced 2026-04-11 21:08:22 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7f7471d47b |
@@ -9,7 +9,7 @@
|
|||||||
<Configurations>Debug;Release</Configurations>
|
<Configurations>Debug;Release</Configurations>
|
||||||
<Platforms>AnyCPU</Platforms>
|
<Platforms>AnyCPU</Platforms>
|
||||||
<ApplicationIcon>Assets/app.ico</ApplicationIcon>
|
<ApplicationIcon>Assets/app.ico</ApplicationIcon>
|
||||||
<Version>0.0.9</Version>
|
<Version>0.1.1</Version>
|
||||||
<RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>
|
<RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||||
|
|||||||
@@ -386,6 +386,11 @@ public class MainWindowViewModel : ViewModelBase
|
|||||||
#region show messages
|
#region show messages
|
||||||
|
|
||||||
private void ShowWorkingMessage(string message)
|
private void ShowWorkingMessage(string message)
|
||||||
|
{
|
||||||
|
RxApp.MainThreadScheduler.Schedule(Action);
|
||||||
|
return;
|
||||||
|
|
||||||
|
void Action()
|
||||||
{
|
{
|
||||||
Message = new Message
|
Message = new Message
|
||||||
{
|
{
|
||||||
@@ -394,17 +399,19 @@ public class MainWindowViewModel : ViewModelBase
|
|||||||
IsError = false
|
IsError = false
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void ShowErrorMessage(string message)
|
private void ShowErrorMessage(string message)
|
||||||
{
|
{
|
||||||
|
RxApp.MainThreadScheduler.Schedule(Action);
|
||||||
|
return;
|
||||||
|
|
||||||
async void Action()
|
async void Action()
|
||||||
{
|
{
|
||||||
Message = new Message { IsVisible = true, Text = message, IsError = true };
|
Message = new Message { IsVisible = true, Text = message, IsError = true };
|
||||||
await Task.Delay(7000);
|
await Task.Delay(7000);
|
||||||
HideWorkingMessage();
|
HideWorkingMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
RxApp.MainThreadScheduler.Schedule(Action);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ShowErrorMessage(Exception exception)
|
private void ShowErrorMessage(Exception exception)
|
||||||
|
|||||||
Reference in New Issue
Block a user