dev: updater

This commit is contained in:
2026-03-10 15:04:27 +01:00
parent f2e4addbb0
commit f065f58f71
15 changed files with 825 additions and 173 deletions

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CarManagerV3.Manager;
namespace CarManagerV3.Forms
{
public partial class UpdatePromptForm : Form
{
public UpdatePromptForm(string currentVersion, string latestVersion)
{
InitializeComponent();
lblInstalledVersion.Text = lblInstalledVersion.Text.Replace("?.?.?", currentVersion);
lblLatestVersion.Text = lblLatestVersion.Text.Replace("?.?.?", latestVersion);
}
private void btnDismissUpdate_Click(object sender, EventArgs e)
{
this.Close();
}
private async void btnInstallUpdate_Click(object sender, EventArgs e)
{
Updater.DownloadNewestInstaller();
}
}
}