start and stop waiting
This commit is contained in:
@@ -16,7 +16,6 @@ namespace Pilz.Updating.UpdateInstaller
|
||||
|
||||
public Main()
|
||||
{
|
||||
|
||||
// G u i
|
||||
this.Shown += Main_Shown;
|
||||
this.FormClosed += Main_FormClosed;
|
||||
@@ -47,7 +46,6 @@ namespace Pilz.Updating.UpdateInstaller
|
||||
header = My.Resources.UpdateInstallerGuiLangRes.String_UpdateIsRunning;
|
||||
}
|
||||
|
||||
radLabel_Header.Text = $"<div align=\"center\" valign=\"center\"><font color=\"#B7472A\" size=\"20\"><b>{header}</b></font></div>";
|
||||
radLabel_Header.Text = $"<html><span style=\"font-size: 18pt; color: #b7472a\"><b>{header}</b></span></html>";
|
||||
}
|
||||
|
||||
@@ -157,6 +155,7 @@ namespace Pilz.Updating.UpdateInstaller
|
||||
|
||||
private async void Main_Shown(object sender, EventArgs e)
|
||||
{
|
||||
radWaitingBar1.StartWaiting();
|
||||
await WaitforHostApp();
|
||||
ExecuteUpdate();
|
||||
}
|
||||
@@ -168,6 +167,7 @@ namespace Pilz.Updating.UpdateInstaller
|
||||
|
||||
private void Main_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
radWaitingBar1.StopWaiting();
|
||||
e.Cancel = !allowClose;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user