Update to .NET 6 except the both *.GUI-Projects
This commit is contained in:
@@ -4,7 +4,8 @@ using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using global::DevComponents.DotNetBar;
|
||||
using Telerik.WinControls;
|
||||
using Telerik.WinControls.Themes;
|
||||
|
||||
namespace Pilz.Updating.UpdateInstaller
|
||||
{
|
||||
@@ -32,9 +33,8 @@ namespace Pilz.Updating.UpdateInstaller
|
||||
InitializeComponent();
|
||||
|
||||
// Init Style
|
||||
StyleManager.Style = eStyle.Office2016;
|
||||
StyleManager.MetroColorGeneratorParameters = new DevComponents.DotNetBar.Metro.ColorTables.MetroColorGeneratorParameters(Installer.Configuration.UpdateWindowCanvasColor, Installer.Configuration.UpdateWindowBaseColor);
|
||||
StyleManager.UpdateAmbientColors(this);
|
||||
RadThemeComponentBase themeToUse = Installer.Configuration.UIDarkMode ? new FluentDarkTheme() : new FluentTheme();
|
||||
ThemeResolutionService.ApplicationThemeName = themeToUse.ThemeName;
|
||||
|
||||
// Init Application Header Text
|
||||
string header;
|
||||
@@ -47,7 +47,8 @@ namespace Pilz.Updating.UpdateInstaller
|
||||
header = My.Resources.UpdateInstallerGuiLangRes.String_UpdateIsRunning;
|
||||
}
|
||||
|
||||
LabelX_Header.Text = $"<div align=\"center\" valign=\"center\"><font color=\"#B7472A\" size=\"20\"><b>{header}</b></font></div>";
|
||||
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>";
|
||||
}
|
||||
|
||||
if (Installer is null)
|
||||
@@ -131,8 +132,8 @@ namespace Pilz.Updating.UpdateInstaller
|
||||
break;
|
||||
}
|
||||
|
||||
LabelX_Status.Text = newStatusText;
|
||||
LabelX_Status.Image = newStatusImage;
|
||||
radLabel_Status.Text = newStatusText;
|
||||
radLabel_Status.Image = newStatusImage;
|
||||
|
||||
//if (newStatus == UpdateInstallerStatus.Done)
|
||||
//{
|
||||
|
||||
Reference in New Issue
Block a user