-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for Avalonia UI version 11 and other package updates (#4)
- Loading branch information
Showing
20 changed files
with
256 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<Application xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Dexy.DexyPatch" | ||
x:Class="Dexy.DexyPatch.App"> | ||
x:Class="Dexy.DexyPatch.App" | ||
RequestedThemeVariant="Dark"> | ||
<Application.DataTemplates> | ||
<local:ViewLocator/> | ||
</Application.DataTemplates> | ||
<Application.Styles> | ||
<FluentTheme Mode="Dark"/> | ||
<FluentTheme/> | ||
<StyleInclude Source="avares://DexyPatch/Icons.axaml" /> | ||
</Application.Styles> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
software/DexyPatch/DexyPatch/Services/StubDialogService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using Dexy.DexyPatch.Utils; | ||
using MsBox.Avalonia.Enums; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Dexy.DexyPatch.Services | ||
{ | ||
/// <summary> | ||
/// Stub implementation of IMessageBoxService | ||
/// </summary> | ||
public class StubDialogService : IDialogService | ||
{ | ||
public void Terminate() { } | ||
|
||
public Task ShowErrorMessage(string message, Exception? ex) | ||
{ | ||
ErrorLog.TraceError(message); | ||
if (ex != null) { | ||
ErrorLog.TraceError(ex); | ||
} | ||
return Task.CompletedTask; | ||
} | ||
|
||
public Task<ButtonResult> AskYesNo(string header, string? message) | ||
{ | ||
// TODO: Need a way to return either yes or no based on a default param or something? | ||
return Task.FromResult<ButtonResult>(ButtonResult.No); | ||
} | ||
|
||
public Task<ButtonResult> AskSaveChanges(string? name) | ||
{ | ||
// TODO: Need a way to return either yes or no based on a default param or something? | ||
return Task.FromResult<ButtonResult>(ButtonResult.No); | ||
} | ||
|
||
public Task<ButtonResult> AskDownloadFirmware(string pathname) | ||
{ | ||
// TODO: Need a way to return either yes or no based on a default param or something? | ||
return Task.FromResult<ButtonResult>(ButtonResult.No); | ||
} | ||
|
||
public Task<string?> OpenFileDialog(string? initPathname, string fileTypeName, string fileTypeExt) | ||
{ | ||
return Task.FromResult<string?>(null); | ||
} | ||
|
||
public Task<string?> SaveFileDialog(string? initPathname, string fileTypeName, string fileTypeExt) | ||
{ | ||
return Task.FromResult<string?>(null); | ||
} | ||
} | ||
} |
Oops, something went wrong.