UI - Rename each OS assembly to Artemis 2

UI - Added auto-run
UI - Added auto-update
This commit is contained in:
Robert committed 2022-08-07 14:15:18 +02:00
1 parent 20af5e9c21
commit faf5302975
30 files changed
+1568 -192

No files matched your search

@@ -0,0 +1,21 @@
using System.Threading.Tasks;
namespace Artemis.UI.Shared.Providers;
/// <summary>
/// Represents a provider for custom cursors.
/// </summary>
public interface IAutoRunProvider
{
/// <summary>
/// Asynchronously enables auto-run.
/// </summary>
/// <param name="recreate">A boolean indicating whether the auto-run configuration should be recreated (the auto run delay changed)</param>
/// <param name="autoRunDelay">The delay in seconds before the application should start (if supported)</param>
Task EnableAutoRun(bool recreate, int autoRunDelay);
/// <summary>
/// Asynchronously disables auto-run.
/// </summary>
Task DisableAutoRun();
}
@@ -0,0 +1,31 @@
using System.Threading.Tasks;
namespace Artemis.UI.Shared.Providers;
/// <summary>
/// Represents a provider for custom cursors.
/// </summary>
public interface IUpdateProvider
{
/// <summary>
/// Asynchronously checks whether an update is available.
/// </summary>
/// <param name="channel">The channel to use when checking updates (i.e. master or development)</param>
/// <returns>A task returning <see langword="true" /> if an update is available; otherwise <see langword="false" />.</returns>
Task<bool> CheckForUpdate(string channel);
/// <summary>
/// Applies any available updates.
/// </summary>
/// <param name="channel">The channel to use when checking updates (i.e. master or development)</param>
/// <param name="silent">Whether or not to update silently.</param>
Task ApplyUpdate(string channel, bool silent);
/// <summary>
/// Offer to install the update to the user.
/// </summary>
/// <param name="channel">The channel to use when checking updates (i.e. master or development)</param>
/// <param name="windowOpen">A boolean indicating whether the main window is open.</param>
/// <returns>A task returning <see langword="true" /> if the user chose to update; otherwise <see langword="false" />.</returns>
Task OfferUpdate(string channel, bool windowOpen);
}
@@ -4,7 +4,6 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="800"
x:Class="Artemis.UI.Shared.Services.ExceptionDialogView"
Icon="/Assets/Images/Logo/application.ico"
Title="{Binding Title}"
ExtendClientAreaToDecorationsHint="True"
Width="800"