dtlauncher/launcher-client-win/GUI/ProgramLabel.xaml.cs

16 lines
460 B
C#

using System.Windows.Controls;
using System.Windows.Media.Imaging;
namespace launcher_client_win.GUI;
public partial class ProgramLabel : UserControl
{
public ProgramLabel(string label, string icon)
{
InitializeComponent();
NameLabel.Content = label;
IconImage.Source = new BitmapImage(new Uri(
$"{Directory.GetCurrent()}{Path.Sep}icons{Path.Sep}{icon}",
UriKind.Absolute));
}
}