equal
deleted
inserted
replaced
|
1 using System; |
|
2 using System.Net; |
|
3 using System.Windows; |
|
4 using System.Windows.Controls; |
|
5 using System.Windows.Documents; |
|
6 using System.Windows.Ink; |
|
7 using System.Windows.Input; |
|
8 using System.Windows.Media; |
|
9 using System.Windows.Media.Animation; |
|
10 using System.Windows.Shapes; |
|
11 using System.Globalization; |
|
12 namespace Iri.Modernisation.Data.Models |
|
13 { |
|
14 public class PolemicTypeDescription |
|
15 { |
|
16 public String Title { get; set; } |
|
17 public Color Color {get;set;} |
|
18 |
|
19 public PolemicTypeDescription(String title, String color) |
|
20 { |
|
21 |
|
22 Title = title; |
|
23 Color = Color.FromArgb( |
|
24 byte.Parse(color.Substring(1,2),NumberStyles.AllowHexSpecifier), |
|
25 byte.Parse(color.Substring(3, 2), NumberStyles.AllowHexSpecifier), |
|
26 byte.Parse(color.Substring(5, 2), NumberStyles.AllowHexSpecifier), |
|
27 byte.Parse(color.Substring(7, 2), NumberStyles.AllowHexSpecifier)); |
|
28 |
|
29 } |
|
30 } |
|
31 } |