MenuButtonModel.cs 886 Bytes
using GalaSoft.MvvmLight;

namespace OOS.Spin.ViewModle.Models
{
    public class MenuButtonModel:ObservableObject
    {
        /// <summary>
        /// 按钮名称
        /// </summary>
        private string buttonName;
        public string ButtonName
        {
            get { return buttonName; }
            set { buttonName = value; RaisePropertyChanged(() => ButtonName); }
        }

        /// <summary>
        /// 关联的TXT文件的路径
        /// </summary>
        private string txtPath;
        public string TxtPath
        {
            get { return txtPath; }
            set { txtPath = value; RaisePropertyChanged(() => TxtPath); }
        }

        private bool isChecked;
        public bool IsChecked
        {
            get { return isChecked; }
            set { isChecked = value; RaisePropertyChanged(() => IsChecked); }
        }
    }
}