client/src/Iri.Modernisation.Controls/ViewModel/HeaderProduction/HeaderProductionChapterVM.cs
author Matthieu Totet
Tue, 22 Dec 2009 16:22:22 +0100
changeset 26 44a2dc869e28
child 27 f292db96b050
permissions -rw-r--r--
Save before big changes on HeaderProduction

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()
        {
        }


    }
}