forked from BornToBeRoot/NETworkManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProfileViewInfo.cs
More file actions
32 lines (28 loc) · 855 Bytes
/
Copy pathProfileViewInfo.cs
File metadata and controls
32 lines (28 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System.Windows;
using System.Windows.Controls;
namespace NETworkManager
{
public class ProfileViewInfo
{
public ProfileViewManager.Name Name { get; set; }
public string TranslatedName { get; set; }
public Canvas Icon { get; set; }
public ProfileViewInfo()
{
}
public ProfileViewInfo(ProfileViewManager.Name name, Canvas icon)
{
Name = name;
TranslatedName = ProfileViewManager.TranslateName(name);
Icon = icon;
}
public ProfileViewInfo(ProfileViewManager.Name name, UIElement uiElement)
{
Name = name;
TranslatedName = ProfileViewManager.TranslateName(name);
var canvas = new Canvas();
canvas.Children.Add(uiElement);
Icon = canvas;
}
}
}