diff -r c031f1132dde -r a9c815025a1b client/src/Iri.Modernisation.Controls/ViewModel/ConsultationView/ConsultationViewVM.cs --- a/client/src/Iri.Modernisation.Controls/ViewModel/ConsultationView/ConsultationViewVM.cs Wed Dec 16 17:14:38 2009 +0100 +++ b/client/src/Iri.Modernisation.Controls/ViewModel/ConsultationView/ConsultationViewVM.cs Fri Dec 18 16:45:30 2009 +0100 @@ -13,11 +13,18 @@ using Iri.Modernisation.Data.LDTClass; using Iri.Modernisation.BaseMVVM.Commands; using Iri.Modernisation.BaseMVVM.ViewModel; +using System.Collections.ObjectModel; namespace Iri.Modernisation.Controls.ViewModel { + /// + /// ViewModel de ConsultationView + /// public class ConsultationViewVM : BaseMVVM.ViewModel.ViewModel { private PolemicElement _selectedElement; + /// + /// PolemicElement sélectionné + /// public PolemicElement SelectedElement { get @@ -33,8 +40,11 @@ - private SLExtensions.Collections.ObjectModel.ObservableCollection _selectedVideoBooks; - public SLExtensions.Collections.ObjectModel.ObservableCollection SelectedVideoBooks + private ObservableCollection _selectedVideoBooks; + /// + /// Liste des Livres Sélectionnés + /// + public ObservableCollection SelectedVideoBooks { get { @@ -49,6 +59,9 @@ } private int _selectedVideoBookIndex=-1; + /// + /// Index du livre sélectionné + /// public int SelectedVideoBookIndex { get @@ -65,6 +78,9 @@ } private ConsultationBookViewVM _consultationBookViewContextMenu; + /// + /// ViewModel de ConsultationBook + /// public ConsultationBookViewVM ConsultationBookViewContextMenu { get @@ -86,7 +102,7 @@ Commands.ClickMenu.CreateNewTextualAnnotation.Executed += new EventHandler(CreateNewTextualAnnotation_Executed); } - void ClickBook_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) + private void ClickBook_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) { BookTimeLineVM temp = new BookTimeLineVM((VideoBook)e.Parameter); temp.ViewModelVideoViewer = ConsultationBookViewContextMenu.ActualVideoSourceVM; @@ -107,6 +123,9 @@ private AnnotationMakerVM _annotationMakerVM; + /// + /// ViewModel de AnnotationMaker + /// public AnnotationMakerVM ViewModelAnnotationMaker { get @@ -114,7 +133,7 @@ return _annotationMakerVM; } } - void CreateNewTextualAnnotation_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) + private void CreateNewTextualAnnotation_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) { ViewModelAnnotationMaker.RefElement = SelectedElement; } @@ -126,7 +145,7 @@ SelectedVideoBooks = new SLExtensions.Collections.ObjectModel.ObservableCollection(); } - void SelectPolemicElement_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) + private void SelectPolemicElement_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) { SelectedElement= (PolemicElement)e.Parameter; try