public EntityOverlayControl(Combatant c, bool IsSelf = false)
 {
     InitializeComponent();
     Model = new EntityOverlayControlViewModel
     {
         NameColor = GetColor(c, IsSelf),
         Name      = c.Name,
         Icon      = GetIcon(c)
     };
     DataContext = Model;
 }
Esempio n. 2
0
 public EntityOverlayControl(Entity c, bool IsSelf = false)
 {
     this.InitializeComponent();
     if (c == null)
     {
         throw new ArgumentNullException("c");
     }
     this.Model = new EntityOverlayControlViewModel
     {
         NameColor = this.GetColor(c, IsSelf),
         Name      = c.Name,
         Icon      = EntityOverlayControl.GetIcon(c)
     };
     base.DataContext = this.Model;
 }