Files
FeedCenter/Application/Options/AboutOptionsPanel.xaml.cs
2023-04-12 13:44:15 -04:00

27 lines
820 B
C#

using System.Reflection;
using System.Windows;
using ChrisKaczor.ApplicationUpdate;
namespace FeedCenter.Options;
public partial class AboutOptionsPanel
{
public AboutOptionsPanel(Window parentWindow) : base(parentWindow)
{
InitializeComponent();
}
public override string CategoryName => Properties.Resources.optionCategoryAbout;
public override void LoadPanel()
{
base.LoadPanel();
ApplicationNameLabel.Text = Properties.Resources.ApplicationDisplayName;
var version = UpdateCheck.LocalVersion.ToString();
VersionLabel.Text = string.Format(Properties.Resources.Version, version);
CompanyLabel.Text = ((AssemblyCompanyAttribute) Assembly.GetEntryAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false)[0]).Company;
}
}