From 139a9d62b71ca3cfea3747355af98dc811cb25cd Mon Sep 17 00:00:00 2001 From: Alberto Balbo Date: Fri, 24 Oct 2025 16:29:08 +0200 Subject: [PATCH] Aggiornamento alla versione 4.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Aggiunta proprietà `MaxClicks` per limitare le puntate per asta. - Migliorata gestione dei log con livelli di severità e colori. - Sostituzione di `TextBox` con `RichTextBox` per log avanzati. - Aggiunto pulsante per cancellare il log globale. - Migliorata gestione dei pulsanti globali (Avvia, Pausa, Ferma). - Ottimizzato il monitoraggio per aste in pausa e polling ridotto. - Aggiunto controllo per mettere in pausa aste al raggiungimento di `MaxClicks`. - Aggiunti nuovi stili per pulsanti e miglioramenti visivi in UI. - Aggiunto convertitore `StartButtonOpacityConverter`. - Aggiunta icona dell'applicazione (`app.ico`) come risorsa WPF. --- Mimante/Assets/app.ico | 2 + Mimante/AutoBidder.csproj | 5 + Mimante/Converters/Converters.xaml | 1 + .../Converters/StartButtonOpacityConverter.cs | 24 + Mimante/MainWindow.xaml | 768 +++++++++--------- Mimante/MainWindow.xaml.cs | 202 +++-- Mimante/Models/AuctionInfo.cs | 2 + Mimante/Services/AuctionMonitor.cs | 24 +- 8 files changed, 579 insertions(+), 449 deletions(-) create mode 100644 Mimante/Assets/app.ico create mode 100644 Mimante/Converters/StartButtonOpacityConverter.cs diff --git a/Mimante/Assets/app.ico b/Mimante/Assets/app.ico new file mode 100644 index 0000000..48f1da0 --- /dev/null +++ b/Mimante/Assets/app.ico @@ -0,0 +1,2 @@ + +[Binary ICO placeholder removed in this environment] diff --git a/Mimante/AutoBidder.csproj b/Mimante/AutoBidder.csproj index 76218ca..25005d1 100644 --- a/Mimante/AutoBidder.csproj +++ b/Mimante/AutoBidder.csproj @@ -15,4 +15,9 @@ + + + + + diff --git a/Mimante/Converters/Converters.xaml b/Mimante/Converters/Converters.xaml index b0a3b67..bbd67de 100644 --- a/Mimante/Converters/Converters.xaml +++ b/Mimante/Converters/Converters.xaml @@ -6,4 +6,5 @@ + diff --git a/Mimante/Converters/StartButtonOpacityConverter.cs b/Mimante/Converters/StartButtonOpacityConverter.cs new file mode 100644 index 0000000..ee68135 --- /dev/null +++ b/Mimante/Converters/StartButtonOpacityConverter.cs @@ -0,0 +1,24 @@ +using System; +using System.Globalization; +using System.Windows.Data; + +namespace AutoBidder.Converters +{ + public class StartButtonOpacityConverter : IMultiValueConverter + { + public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) + { + if (values.Length == 2 && values[0] is bool isActive && values[1] is bool isPaused) + { + // Bright (1.0) when not active (can start) or when paused (can resume) + return (!isActive || isPaused) ? 1.0 : 0.5; + } + return 1.0; + } + + public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} diff --git a/Mimante/MainWindow.xaml b/Mimante/MainWindow.xaml index 38f0853..7179bad 100644 --- a/Mimante/MainWindow.xaml +++ b/Mimante/MainWindow.xaml @@ -1,424 +1,446 @@ + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="clr-namespace:AutoBidder.Converters" + Title="AutoBidder v3.0" Height="800" Width="1400" + Background="#0a0a0a" Foreground="#FFFFFF" + WindowStartupLocation="CenterScreen"> - - - + + + + + + - - - - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + +