|
27
|
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 |
|
|
|
13 |
namespace Iri.Modernisation.Data.Models |
|
|
14 |
{ |
|
|
15 |
public class VideoChapterDescription |
|
|
16 |
{ |
|
|
17 |
public String Title { get; set; } |
|
|
18 |
public Color Color {get;set;} |
|
|
19 |
public int Id { get; set; } |
|
|
20 |
public VideoChapterDescription(int id,String title,String color) |
|
|
21 |
{ |
|
|
22 |
Id = id; |
|
|
23 |
Title = title; |
|
|
24 |
Color = Color.FromArgb( |
|
|
25 |
byte.Parse(color.Substring(1,2),NumberStyles.AllowHexSpecifier), |
|
|
26 |
byte.Parse(color.Substring(3, 2), NumberStyles.AllowHexSpecifier), |
|
|
27 |
byte.Parse(color.Substring(5, 2), NumberStyles.AllowHexSpecifier), |
|
|
28 |
byte.Parse(color.Substring(7, 2), NumberStyles.AllowHexSpecifier)); |
|
|
29 |
|
|
|
30 |
} |
|
|
31 |
} |
|
|
32 |
} |