Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Usr
- {
- public string name { get; set; }
- public string status { get; set; }
- public Brush elipce { get; set; }
- public Usr() { }
- public Usr(string name, string status)
- {
- this.name = name;
- this.status = status;
- if (status == "On")
- elipce = new SolidColorBrush(System.Windows.Media.Colors.Green);
- else
- elipce = new SolidColorBrush(System.Windows.Media.Colors.Red);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement