Skip to content

Commit 20dfc9a

Browse files
committed
* Included latest UpdateManager library
1 parent f0930a7 commit 20dfc9a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

MemPlus/Views/Windows/MainWindow.xaml.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using MemPlus.Business.RAM;
1313
using MemPlus.Business.UTILS;
1414
using Syncfusion.UI.Xaml.Gauges;
15+
using UpdateManager.Classes;
1516
using Application = System.Windows.Application;
1617
using MessageBox = System.Windows.MessageBox;
1718

@@ -55,7 +56,17 @@ public MainWindow()
5556
_logController = new LogController(600000);
5657
_logController.AddLog(new ApplicationLog("Initializing MainWindow"));
5758

58-
_updateManager = new UpdateManager.Classes.UpdateManager(Assembly.GetExecutingAssembly().GetName().Version, "https://codedead.com/Software/MemPlus/update.xml", "MemPlus", "Information", "Cancel", "Download", "You are using the latest version!");
59+
StringVariables stringVariables = new StringVariables
60+
{
61+
CancelButtonText = "Cancel",
62+
DownloadButtonText = "Download",
63+
InformationButtonText = "Information",
64+
NoNewVersionText = "You are running the latest version!",
65+
TitleText = "MemPlus",
66+
UpdateNowText = "Would you like to update the application now?"
67+
};
68+
_updateManager = new UpdateManager.Classes.UpdateManager(Assembly.GetExecutingAssembly().GetName().Version, "https://codedead.com/Software/MemPlus/update.xml", stringVariables);
69+
5970
_clearingMemory = false;
6071

6172
InitializeComponent();

0 commit comments

Comments
 (0)