client/src/Iri.Modernisation.Controls/ViewModel/PolemicElementVM.cs
changeset 27 f292db96b050
parent 10 12515e11b357
child 28 2d4ec5ab2a40
--- a/client/src/Iri.Modernisation.Controls/ViewModel/PolemicElementVM.cs	Tue Dec 22 16:22:22 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/ViewModel/PolemicElementVM.cs	Mon Jan 04 10:29:39 2010 +0100
@@ -188,22 +188,11 @@
         /// <summary>
         /// PolemicType de l'élément
         /// </summary>
-        public object Type
+        public SolidColorBrush Type
         {
             get
             {
-                if (_element is Annotation)
-                {
-                    return ((Annotation)_element).Type;
-                }
-                else if(_element is SegmentIndex)
-                {
-                    return ((SegmentIndex)_element).Chapter.Type;
-                }
-                else
-                {
-                    return PolemicElementType.Basic;
-                }
+                return new SolidColorBrush(Chapter.Color);
             }
         }
         private PolemicElement _element { get; set; }