Source

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

Full commit


namespace DataUp.Excel.Addin
{
    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class SummaryDetailViewModel : ViewModelBase
    {
        private string sheetName;

        private int categoryHighCount;
        private int categoryMediumCount;
        private int categoryLowCount;

        private int fixableErrorCount;
        private int unFixableErrorCount;

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

        /// <summary>
        /// Gets or sets Total number of errors for high category
        /// </summary>
        public int CategoryHighCount
        {
            get
            {
                return categoryHighCount;
            }
            set
            {
                categoryHighCount = value;
                OnNotifyPropertyChanged("CategoryHighCount");
            }
        }

        /// <summary>
        /// Gets or sets Total number of errors for Medium category
        /// </summary>
        public int CategoryMediumCount
        {
            get
            {
                return categoryMediumCount;
            }
            set
            {
                categoryMediumCount = value;
                OnNotifyPropertyChanged("CategoryMediumCount");
            }
        }

        /// <summary>
        /// Gets or sets Total number of errors for Low category
        /// </summary>
        public int CategoryLowCount
        {
            get
            {
                return categoryLowCount;
            }
            set
            {
                categoryLowCount = value;
                OnNotifyPropertyChanged("CategoryLowCount");
            }
        }

        /// <summary>
        /// Gets or sets Total number of errors which can be fixed
        /// </summary>
        public int FixableErrorCount
        {
            get
            {
                return fixableErrorCount;
            }
            set
            {
                fixableErrorCount = value;
                OnNotifyPropertyChanged("FixableErrorCount");
            }
        }

        /// <summary>
        /// Gets or sets Total number of errors which cannot be fixed
        /// </summary>
        public int UnFixableErrorCount
        {
            get
            {
                return unFixableErrorCount;
            }
            set
            {
                unFixableErrorCount = value;
                OnNotifyPropertyChanged("UnFixableErrorCount");
            }
        }
    }
}