dtlauncher/launcher-client-wpf/GUI/ProgramLabel.xaml.cs
2022-07-01 19:36:38 +03:00

16 lines
478 B
C#

using System.Windows.Controls;
using System.Windows.Media.Imaging;
namespace Launcher.Client.WPF.GUI;
public partial class ProgramLabel : UserControl
{
public ProgramLabel(string label, string icon)
{
InitializeComponent();
NameLabel.Content = label;
IconImage.Source = new BitmapImage(new Uri(
$"{Directory.GetCurrent()}{Путь.Разд}icons{Путь.Разд}{icon}",
UriKind.Absolute));
}
}