client/src/Iri.Modernisation.Data/Models/VideoChapterDescription.cs
author totetm <>
Fri, 12 Feb 2010 12:24:46 +0100
changeset 45 de06fa7242ae
parent 27 f292db96b050
permissions -rw-r--r--
Fixed| agrandir la zonne d'affichage de la time line quand la taille des bloques d'annotations sont supèrieur a sa hauteur Fixed| faire fonctionner le bouton collapse des zonnes d'affichage des timeline
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
}