Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
97
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Usr
  2.     {
  3.         public string name { get; set; }
  4.         public string status { get; set; }
  5.         public Brush elipce { get; set; }
  6.  
  7.         public Usr() { }
  8.  
  9.         public Usr(string name, string status)
  10.         {
  11.             this.name = name;
  12.             this.status = status;
  13.             if (status == "On")
  14.                 elipce = new SolidColorBrush(System.Windows.Media.Colors.Green);
  15.             else
  16.                 elipce = new SolidColorBrush(System.Windows.Media.Colors.Red);
  17.         }
  18.     }
Advertisement
RAW Paste Data Copied
Advertisement