Files
mRemoteNG/mRemoteNG/UI/Forms/FrmSplashScreenNew.xaml.cs
2024-08-28 11:29:40 +01:00

35 lines
1.1 KiB
C#

using System;
using System.Runtime.Versioning;
using mRemoteNG.App.Info;
namespace mRemoteNG.UI.Forms
{
[SupportedOSPlatform("windows")]
/// <summary>
/// Interaction logic for FrmSplashScreenNew.xaml
/// </summary>
public partial class FrmSplashScreenNew
{
static FrmSplashScreenNew instance = null;
public FrmSplashScreenNew()
{
InitializeComponent();
LoadFont();
lblLogoPartD.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
lblLogoPartD.Content = $@"v. {GeneralAppInfo.ApplicationVersion} - 'Libro Ultimo'";
}
public static FrmSplashScreenNew GetInstance()
{
//instance == null
instance ??= new FrmSplashScreenNew();
return instance;
}
void LoadFont()
{
lblLogoPartA.FontFamily = new System.Windows.Media.FontFamily(new Uri("pack://application:,,,/"), "./UI/Font/#HandelGotDBol");
lblLogoPartB.FontFamily = new System.Windows.Media.FontFamily(new Uri("pack://application:,,,/"), "./UI/Font/#HandelGotDBol");
}
}
}