From 7e2b893104782cfcfd7734e0c8f5e85f4edbd136 Mon Sep 17 00:00:00 2001 From: rmbgame Date: Fri, 18 Jun 2021 14:27:14 +0800 Subject: [PATCH] asf download --- .../Views/Pages/ArchiSteamFarmPlusPage.axaml | 7 +- .../Pages/ArchiSteamFarmPlusPage.axaml.cs | 13 ++ .../UI/Views/Pages/CommunityProxyPage.axaml | 4 +- .../ST.Client.Desktop.Avalonia.csproj | 10 +- .../Models/ArchiSteamFarm/ASFBot.cs | 13 ++ .../Models/GithubReleaseModel.cs | 34 ++++ .../Services/IArchiSteamFarmService.cs | 5 +- .../ArchiSteamFarmServiceImpl.cs | 148 ++++++++++++++++-- .../UI/Resx/AppResources.Designer.cs | 9 ++ .../UI/Resx/AppResources.resx | 3 + .../Pages/ArchiSteamFarmPlusPageViewModel.cs | 9 +- .../Implementation/HttpProxyServiceImpl.cs | 8 +- 12 files changed, 226 insertions(+), 37 deletions(-) create mode 100644 src/ST.Client.Desktop/Models/ArchiSteamFarm/ASFBot.cs create mode 100644 src/ST.Client.Desktop/Models/GithubReleaseModel.cs diff --git a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/ArchiSteamFarmPlusPage.axaml b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/ArchiSteamFarmPlusPage.axaml index 11b924597..6d8d9ceb7 100644 --- a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/ArchiSteamFarmPlusPage.axaml +++ b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/ArchiSteamFarmPlusPage.axaml @@ -31,10 +31,11 @@ HorizontalAlignment="Center"/> - + - - + + diff --git a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/ArchiSteamFarmPlusPage.axaml.cs b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/ArchiSteamFarmPlusPage.axaml.cs index c5319a230..0f0bdf1e2 100644 --- a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/ArchiSteamFarmPlusPage.axaml.cs +++ b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/ArchiSteamFarmPlusPage.axaml.cs @@ -10,16 +10,29 @@ namespace System.Application.UI.Views.Pages { public class ArchiSteamFarmPlusPage : ReactiveUserControl { + readonly TextBox commandTextbox; + public ArchiSteamFarmPlusPage() { InitializeComponent(); var selectAsfPath = this.FindControl