| author | Matthieu Totet |
| Thu, 03 Dec 2009 16:05:57 +0100 | |
| changeset 17 | 0e4e63f6f567 |
| parent 10 | 12515e11b357 |
| child 18 | 66911d0f0eb6 |
| permissions | -rw-r--r-- |
| 0 | 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.Collections.Generic; |
|
12 |
namespace Iri.Modernisation.Data.Models |
|
13 |
{ |
|
14 |
/// <summary> |
|
15 |
/// Classe VideoLivre |
|
16 |
/// </summary> |
|
17 |
public class VideoBook |
|
18 |
{ |
|
19 |
/// <summary> |
|
20 |
/// Titre du VideoLivre |
|
21 |
/// </summary> |
|
22 |
public String Title { get; set; } |
|
23 |
||
24 |
/// <summary> |
|
25 |
/// Auteur du VideoLivre |
|
26 |
/// </summary> |
|
27 |
public User Author { get; set; } |
|
28 |
||
29 |
/// <summary> |
|
30 |
/// Chapitre du VideoLivre |
|
31 |
/// </summary> |
|
32 |
public VideoChapter[] Chapters { get; set; } |
|
33 |
||
34 |
/// <summary> |
|
35 |
/// Durée du VideoLivre |
|
36 |
/// </summary> |
|
37 |
public TimeSpan Duration { get; set; } |
|
38 |
||
39 |
/// <summary> |
|
40 |
/// Chemin de la vidéo fini |
|
41 |
/// </summary> |
|
42 |
public String MediaPath { get; set; } |
|
43 |
||
44 |
/// <summary> |
|
45 |
/// Constructeur par défaut |
|
46 |
/// </summary> |
|
47 |
public VideoBook() |
|
48 |
{ |
|
49 |
Chapters = new VideoChapter[4]; |
|
|
10
12515e11b357
Update PolemicElement View : Can Display Correct Color of VideoChapter
Matthieu Totet
parents:
0
diff
changeset
|
50 |
Chapters[0] = new VideoChapter(this,"Modernisation",VideoChapterType.Modernite); |
|
12515e11b357
Update PolemicElement View : Can Display Correct Color of VideoChapter
Matthieu Totet
parents:
0
diff
changeset
|
51 |
Chapters[1] = new VideoChapter(this, "Modernité", VideoChapterType.Modernisation); |
|
12515e11b357
Update PolemicElement View : Can Display Correct Color of VideoChapter
Matthieu Totet
parents:
0
diff
changeset
|
52 |
Chapters[2] = new VideoChapter(this, "Post-Modernité",VideoChapterType.Postmodernite); |
|
12515e11b357
Update PolemicElement View : Can Display Correct Color of VideoChapter
Matthieu Totet
parents:
0
diff
changeset
|
53 |
Chapters[3] = new VideoChapter(this, "Ouverture",VideoChapterType.Ouverture); |
| 0 | 54 |
|
55 |
} |
|
56 |
||
57 |
|
|
58 |
} |
|
59 |
||
60 |
/// <summary> |
|
61 |
/// Comparateur pour Trier les livres |
|
62 |
/// </summary> |
|
63 |
public class VideoBookComparer : IComparer<VideoBook> |
|
64 |
{ |
|
65 |
public int Compare(VideoBook x, VideoBook y) |
|
66 |
{ |
|
67 |
return x.Title.CompareTo(y.Title); |
|
68 |
} |
|
69 |
} |
|
70 |
} |