client/src/Iri.Modernisation.Data/Models/VideoChapterDescription.cs
author Matthieu Totet
Mon, 04 Jan 2010 10:29:39 +0100
changeset 27 f292db96b050
permissions -rw-r--r--
Generalization of Book Structure
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
     1
using System;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
     2
using System.Net;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
     3
using System.Windows;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
     4
using System.Windows.Controls;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
     5
using System.Windows.Documents;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
     6
using System.Windows.Ink;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
     7
using System.Windows.Input;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
     8
using System.Windows.Media;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
     9
using System.Windows.Media.Animation;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    10
using System.Windows.Shapes;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    11
using System.Globalization;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    12
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    13
namespace Iri.Modernisation.Data.Models
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    14
{
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    15
    public class VideoChapterDescription
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    16
    {
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    17
        public String Title { get; set; }
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    18
        public Color Color {get;set;}
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    19
        public int Id { get; set; }
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    20
        public VideoChapterDescription(int id,String title,String color)
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    21
        {
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    22
            Id = id;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    23
            Title = title;
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    24
            Color = Color.FromArgb(
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    25
                byte.Parse(color.Substring(1,2),NumberStyles.AllowHexSpecifier),
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    26
                byte.Parse(color.Substring(3, 2), NumberStyles.AllowHexSpecifier),
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    27
                byte.Parse(color.Substring(5, 2), NumberStyles.AllowHexSpecifier),
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    28
                byte.Parse(color.Substring(7, 2), NumberStyles.AllowHexSpecifier));
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    29
           
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    30
        }
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    31
    }
f292db96b050 Generalization of Book Structure
Matthieu Totet
parents:
diff changeset
    32
}