Source

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


namespace DataUp.Excel.Addin
{
    using System;
    using DataUp.Excel.Common;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class ErrorDetailsViewModelBase : ViewModelBase
    {
        public event EventHandler OnRefresh;

        private string sheetName;

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

        public void InvokeRefresh()
        {
            OnRefresh.OnFire(this, new EventArgs());
        }
    }
}