client/src/Iri.Modernisation.Controls/ViewModel/HeaderProduction/HeaderProductionChapterVM.cs
changeset 26 44a2dc869e28
child 27 f292db96b050
equal deleted inserted replaced
25:a9c815025a1b 26:44a2dc869e28
       
     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 
       
    12 namespace Iri.Modernisation.Controls.ViewModel
       
    13 {
       
    14     public class HeaderProductionChapterVM : BaseMVVM.ViewModel.ViewModel
       
    15     {
       
    16         private bool _isEnable;
       
    17         public bool IsEnable
       
    18         {
       
    19             get
       
    20             {
       
    21                 return _isEnable;
       
    22             }
       
    23             set
       
    24             {
       
    25                 _isEnable = value;
       
    26                 OnPropertyChanged("IsEnable");
       
    27             }
       
    28         }
       
    29 
       
    30         private bool _editing;
       
    31         public bool Editing
       
    32         {
       
    33             get
       
    34             {
       
    35                 return _editing;
       
    36             }
       
    37             set
       
    38             {
       
    39                 _editing = value;
       
    40                 if (_next != null)
       
    41                 {
       
    42                     _next.Enable();
       
    43                 }
       
    44                 OnPropertyChanged("Editing");
       
    45             }
       
    46         }
       
    47 
       
    48         private bool _indexing;
       
    49         public bool Indexing
       
    50         {
       
    51             get
       
    52             {
       
    53                 return _indexing;
       
    54             }
       
    55             set
       
    56             {
       
    57                 _indexing = value;
       
    58                 OnPropertyChanged("Indexing");
       
    59             }
       
    60         }
       
    61 
       
    62         private HeaderProductionChapterVM _next;
       
    63 
       
    64         public void Enable()
       
    65         {
       
    66             IsEnable = true;
       
    67         }
       
    68 
       
    69         public HeaderProductionChapterVM()
       
    70         {
       
    71         }
       
    72 
       
    73 
       
    74     }
       
    75 }