update projects (versions, nuget, references)
This commit is contained in:
@@ -7,6 +7,7 @@ using Microsoft.VisualBasic.CompilerServices;
|
||||
using global::Pilz.Updating.Client.GUI.My.Resources;
|
||||
using System;
|
||||
using Telerik.WinControls;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pilz.Updating.Client.GUI
|
||||
{
|
||||
@@ -59,13 +60,7 @@ namespace Pilz.Updating.Client.GUI
|
||||
|
||||
public bool UseHiddenSearch { get; set; } = false;
|
||||
|
||||
private Image MyAppIcon
|
||||
{
|
||||
get
|
||||
{
|
||||
return Icon.ExtractAssociatedIcon(Assembly.GetEntryAssembly().Location).ToBitmap();
|
||||
}
|
||||
}
|
||||
private static Image MyAppIcon => Icon.ExtractAssociatedIcon(IO.Extensions.GetExecutablePath()).ToBitmap();
|
||||
|
||||
// C o n s t r u c t o r s
|
||||
|
||||
@@ -76,10 +71,10 @@ namespace Pilz.Updating.Client.GUI
|
||||
|
||||
// F e a t u r e s
|
||||
|
||||
public void UpdateInteractive(Form parentForm)
|
||||
public async Task UpdateInteractive(Form parentForm)
|
||||
{
|
||||
this.parentForm = parentForm;
|
||||
UpdateClient.UpdateInteractiveAsync();
|
||||
await UpdateClient.UpdateInteractive();
|
||||
}
|
||||
|
||||
private void EndUpdating()
|
||||
@@ -88,7 +83,7 @@ namespace Pilz.Updating.Client.GUI
|
||||
UpdateClient = null;
|
||||
}
|
||||
|
||||
private void MyUpdateClient_UpdateStatusChanged(UpdateStatus newStatus, int progress)
|
||||
private void MyUpdateClient_UpdateStatusChanged(UpdateStatus newStatus)
|
||||
{
|
||||
bool useGui = false;
|
||||
if (!(newStatus == UpdateStatus.Searching && UseHiddenSearch))
|
||||
@@ -106,7 +101,7 @@ namespace Pilz.Updating.Client.GUI
|
||||
}));
|
||||
}
|
||||
|
||||
curProgressDialog?.Invoke(new Action(() => curProgressDialog.SetCurrentState(newStatus, progress)));
|
||||
curProgressDialog?.Invoke(new Action(() => curProgressDialog.SetCurrentState(newStatus)));
|
||||
}
|
||||
|
||||
private void MyUpdateClient_DownloadingUpdate(UpdatePackageInfo pkg, CancelEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user