start and stop waiting

This commit is contained in:
2022-06-11 08:47:28 +02:00
parent 0661d67148
commit dab01d9ed7

View File

@@ -16,7 +16,6 @@ namespace Pilz.Updating.UpdateInstaller
public Main() public Main()
{ {
// G u i // G u i
this.Shown += Main_Shown; this.Shown += Main_Shown;
this.FormClosed += Main_FormClosed; this.FormClosed += Main_FormClosed;
@@ -47,7 +46,6 @@ namespace Pilz.Updating.UpdateInstaller
header = My.Resources.UpdateInstallerGuiLangRes.String_UpdateIsRunning; 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>"; 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) private async void Main_Shown(object sender, EventArgs e)
{ {
radWaitingBar1.StartWaiting();
await WaitforHostApp(); await WaitforHostApp();
ExecuteUpdate(); ExecuteUpdate();
} }
@@ -168,6 +167,7 @@ namespace Pilz.Updating.UpdateInstaller
private void Main_FormClosing(object sender, FormClosingEventArgs e) private void Main_FormClosing(object sender, FormClosingEventArgs e)
{ {
radWaitingBar1.StopWaiting();
e.Cancel = !allowClose; e.Cancel = !allowClose;
} }