- Aggiornamento alla versione Microsoft.EntityFrameworkCore.Sqlite 8.0.0. - Aggiornamento alla versione Microsoft.Windows.SDK.BuildTools 10.0.26100.6584. - Migliorata l'interfaccia per l'inserimento di più URL/ID di aste. - Aggiunti pulsanti per "Aste Chiuse" e "Esporta" in MainWindow. - Creata finestra "Aste Chiuse" per visualizzare e gestire aste chiuse. - Implementato scraper per estrarre dati da aste chiuse. - Aggiunto supporto per esportazione dati in CSV, JSON e XML. - Introdotto contesto Entity Framework per statistiche delle aste. - Aggiunto servizio per calcolo e gestione delle statistiche. - Gestite preferenze di esportazione con salvataggio in file JSON.
36 lines
1004 B
C#
36 lines
1004 B
C#
using System.Windows;
|
|
|
|
namespace AutoBidder.Dialogs
|
|
{
|
|
public partial class AddAuctionSimpleDialog : Window
|
|
{
|
|
public string AuctionId { get; private set; } = string.Empty;
|
|
|
|
public AddAuctionSimpleDialog()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void OkButton_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
var text = AuctionUrlBox.Text ?? string.Empty;
|
|
if (string.IsNullOrWhiteSpace(text))
|
|
{
|
|
MessageBox.Show("Inserisci almeno un URL o ID dell'asta.", "Errore", MessageBoxButton.OK, MessageBoxImage.Warning);
|
|
return;
|
|
}
|
|
|
|
// Return the raw text (may contain multiple entries); caller will parse it
|
|
AuctionId = text.Trim();
|
|
DialogResult = true;
|
|
Close();
|
|
}
|
|
|
|
private void CancelButton_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
DialogResult = false;
|
|
Close();
|
|
}
|
|
}
|
|
}
|