client/src/Iri.Modernisation.Controls/ViewModel/NavigationBar/ConsultMenuVM.cs
changeset 25 a9c815025a1b
parent 0 249d70e7b32d
child 42 594fdedecf7f
equal deleted inserted replaced
24:c031f1132dde 25:a9c815025a1b
    18 {
    18 {
    19     public class ConsultMenuVM : BaseMVVM.ViewModel.ViewModel
    19     public class ConsultMenuVM : BaseMVVM.ViewModel.ViewModel
    20     {
    20     {
    21       private List<VideoBook> _videoBooks = new List<VideoBook>();
    21       private List<VideoBook> _videoBooks = new List<VideoBook>();
    22       private List<VideoBook> list = new List<VideoBook>();
    22       private List<VideoBook> list = new List<VideoBook>();
       
    23         /// <summary>
       
    24         /// VideoBooks Disponible
       
    25         /// </summary>
    23       public List<VideoBook> VideoBooks
    26       public List<VideoBook> VideoBooks
    24       {
    27       {
    25           get 
    28           get 
    26           {
    29           {
    27               _videoBooks.Sort(new VideoBookComparer());
    30               _videoBooks.Sort(new VideoBookComparer());
    39           {
    42           {
    40               list = value;
    43               list = value;
    41               OnPropertyChanged("VideoBooks");
    44               OnPropertyChanged("VideoBooks");
    42           }
    45           }
    43       }
    46       }
       
    47       private bool _searchAuthor;
       
    48         /// <summary>
       
    49         /// Recherche par Auteur activée
       
    50         /// </summary>
       
    51       public bool SearchAuthor
       
    52       {
       
    53           get
       
    54           {
       
    55               return _searchAuthor;
       
    56           }
       
    57           set
       
    58           {
       
    59               _searchAuthor = value;
       
    60               OnPropertyChanged("SearchAuthor");
       
    61           }
    44 
    62 
    45       public bool SearchAuthor { get; set; }
    63       }
    46       public bool SearchContributer { get; set; }
    64 
    47       public bool SearchTag { get; set; }
    65       private bool _searchContributer;
       
    66         /// <summary>
       
    67         /// Recherche par Contributeur activée
       
    68         /// </summary>
       
    69       public bool SearchContributer
       
    70       {
       
    71           get
       
    72           {
       
    73               return _searchContributer;
       
    74           }
       
    75           set
       
    76           {
       
    77               _searchContributer = value;
       
    78               OnPropertyChanged("SearchContributer");
       
    79           }
       
    80       }
       
    81 
       
    82       private bool _searchTag;
       
    83         /// <summary>
       
    84         /// Recherche par Tag
       
    85         /// </summary>
       
    86       public bool SearchTag
       
    87       {
       
    88           get
       
    89           {
       
    90               return _searchTag;
       
    91           }
       
    92           set
       
    93           {
       
    94               _searchTag = value;
       
    95               OnPropertyChanged("SearchTag");
       
    96           }
       
    97       }
    48 
    98 
    49       private String _searchWord= "";
    99       private String _searchWord= "";
    50       public String SearchWord 
   100       public String SearchWord 
    51       { 
   101       { 
    52           get
   102           get