client/src/Iri.Modernisation.Controls/ViewModel/HeaderProduction/HeaderProductionChapterVM.cs
changeset 26 44a2dc869e28
child 27 f292db96b050
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/Iri.Modernisation.Controls/ViewModel/HeaderProduction/HeaderProductionChapterVM.cs	Tue Dec 22 16:22:22 2009 +0100
@@ -0,0 +1,75 @@
+using System;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+
+namespace Iri.Modernisation.Controls.ViewModel
+{
+    public class HeaderProductionChapterVM : BaseMVVM.ViewModel.ViewModel
+    {
+        private bool _isEnable;
+        public bool IsEnable
+        {
+            get
+            {
+                return _isEnable;
+            }
+            set
+            {
+                _isEnable = value;
+                OnPropertyChanged("IsEnable");
+            }
+        }
+
+        private bool _editing;
+        public bool Editing
+        {
+            get
+            {
+                return _editing;
+            }
+            set
+            {
+                _editing = value;
+                if (_next != null)
+                {
+                    _next.Enable();
+                }
+                OnPropertyChanged("Editing");
+            }
+        }
+
+        private bool _indexing;
+        public bool Indexing
+        {
+            get
+            {
+                return _indexing;
+            }
+            set
+            {
+                _indexing = value;
+                OnPropertyChanged("Indexing");
+            }
+        }
+
+        private HeaderProductionChapterVM _next;
+
+        public void Enable()
+        {
+            IsEnable = true;
+        }
+
+        public HeaderProductionChapterVM()
+        {
+        }
+
+
+    }
+}