-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove HttpUtils helpers * Fix AddVmArgumentDialogViewModel * Fix AuthenticationWizardDialogViewModel * Fix DeleteInstanceDialogViewModel * Fix ChooseAccountTypeViewModel * Fix BrowserMicrosoftAuthViewModel * Fix ChooseMicrosoftAuthMethodViewModel * Fix ConfirmProfileViewModel * Fix utils * Fix non-exhaustive switch in TaskViewModel * Fix nullability issues in GameService * Fix nullability issues in AuthenticationWizardDialogViewModel * Add EnumeratorCancellation to async enumerator in LaunchService * Fix warnings in SkinPage * Fix nullability issues in SettingsService * Comment legacy MessageData class * Update FluentCore * Update FluentCore
- Loading branch information
Showing
22 changed files
with
133 additions
and
111 deletions.
There are no files selected for viewing
Submodule Natsurainko.FluentCore
updated
2 files
+0 −31 | Natsurainko.FluentCore/Utils/HttpUtils.cs | |
+4 −4 | README.md |
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
15 changes: 5 additions & 10 deletions
15
Natsurainko.FluentLauncher/Utils/CommandParameterConverter.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 |
---|---|---|
@@ -1,22 +1,17 @@ | ||
using System; | ||
|
||
#nullable disable | ||
namespace Natsurainko.FluentLauncher.Utils; | ||
|
||
public static class CommandParameterConverter | ||
{ | ||
public static (TSender sender, TArgs args) As<TSender, TArgs>(this object parameter) | ||
{ | ||
var sender = parameter.GetType().GetField("Item1").GetValue(parameter); | ||
var args = parameter.GetType().GetField("Item2").GetValue(parameter); | ||
var sender = parameter.GetType().GetField("Item1")?.GetValue(parameter); | ||
var args = parameter.GetType().GetField("Item2")?.GetValue(parameter); | ||
|
||
return ((TSender)sender, (TArgs)args); | ||
} | ||
if (sender == null || args == null) | ||
throw new InvalidCastException("Invalid parameter type."); | ||
|
||
public static void As<TSender, TArgs>(this object parameter, Action<(TSender sender, TArgs args)> action) | ||
{ | ||
var sender = parameter.GetType().GetField("Item1").GetValue(parameter); | ||
var args = parameter.GetType().GetField("Item2").GetValue(parameter); | ||
action(((TSender)sender, (TArgs)args)); | ||
return ((TSender)sender, (TArgs)args); | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
Natsurainko.FluentLauncher/Utils/Extensions/ControlExtensions.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
5 changes: 2 additions & 3 deletions
5
Natsurainko.FluentLauncher/Utils/Extensions/ProcessExtensions.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
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
Oops, something went wrong.