Source

main / Source / Excel / Excel.AddIn / Excel.AddIn / ViewModels / ErrorDetailViewModel.cs

Full commit
using DataUp.Excel.BizLogic;

namespace DataUp.Excel.Addin
{
    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class ErrorDetailViewModel : ViewModelBase
    {
        private ErrorType error;
        private ErrorCategory category;

        private string title;
        private string description;
        private string recommendation;
        private string errorAddress;
        private string displayErrorAddress;
        private string sheetName;

        private bool isRemovable;

        private bool isChecked;

        /// <summary>
        /// Gets or sets the type of error.
        /// </summary>
        public ErrorType Error
        {
            get
            {
                return error;
            }
            set
            {
                error = value;
                OnNotifyPropertyChanged("Error");
            }
        }

        /// <summary>
        /// Gets or sets the category of error 
        /// </summary>
        public ErrorCategory Category
        {
            get
            {
                return category;
            }
            set
            {
                category = value;
                OnNotifyPropertyChanged("Category");
            }
        }

        /// <summary>
        /// Gets or sets Title
        /// </summary>
        public string Title
        {
            get
            {
                return title;
            }
            set
            {
                title = value;
                OnNotifyPropertyChanged("Title");
            }
        }

        /// <summary>
        /// Gets or sets Description
        /// </summary>
        public string Description
        {
            get
            {
                return description;
            }
            set
            {
                description = value;
                OnNotifyPropertyChanged("Description");
            }
        }

        /// <summary>
        /// Gets or sets Recommendation
        /// </summary>
        public string Recommendation
        {
            get
            {
                return recommendation;
            }
            set
            {
                recommendation = value;
                OnNotifyPropertyChanged("Recommendation");
            }
        }

        /// <summary>
        /// Gets or sets Address of the error
        /// </summary>
        public string ErrorAddress
        {
            get
            {
                return errorAddress;
            }
            set
            {
                errorAddress = value;
                OnNotifyPropertyChanged("ErrorAddress");
            }
        }

        /// <summary>
        /// Gets or sets Address of the error
        /// </summary>
        public string DisplayErrorAddress
        {
            get
            {
                return displayErrorAddress;
            }
            set
            {
                displayErrorAddress = value;
                OnNotifyPropertyChanged("DisplayErrorAddress");
            }
        }

        /// <summary>
        /// Gets or sets the name of the worksheet
        /// </summary>
        public string SheetName
        {
            get
            {
                return sheetName;
            }
            set
            {
                sheetName = value;
                OnNotifyPropertyChanged("SheetName");
            }
        }

        /// <summary>
        /// Gets or sets value indicating whether the error can be removed automatically or not.
        /// </summary>
        public bool IsRemovable
        {
            get
            {
                return isRemovable;
            }
            set
            {
                isRemovable = value;
                OnNotifyPropertyChanged("IsRemovable");
            }
        }

        /// <summary>
        /// Gets or sets value indicating whether the error can be removed automatically or not.
        /// </summary>
        public bool IsChecked
        {
            get
            {
                return isChecked;
            }
            set
            {
                isChecked = value;
                OnNotifyPropertyChanged("IsChecked");
            }
        }
    }
}