ControlUserOne.cs 1.61 KB
using OS.Spin.View.SquareBox;
namespace OS.Spin.View.Utils
{
    public class ControlUserOne
    {
        private UserControOne _userControOne;   //存储UserControOne(这里存放的是我要展示的数据)
        private UserControl4 _userControl4;    //这个控制颜色转换的状态
        private int _ground;    //控制背景颜色的改变

        /// <summary>
        /// 无参构造函数
        /// </summary>
        public ControlUserOne() { }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="userControOne"></param>
        /// <param name="ground"></param>
        public ControlUserOne(UserControOne userControOne, UserControl4 userControl4, int ground)
        {
            this._userControOne = userControOne;
            this._userControl4 = userControl4;
            this._ground = ground;
        }

        /// <summary>
        /// 获取UserControOne
        /// </summary>
        public UserControOne userControOne
        {
            get { return _userControOne; }
            set
            {
                _userControOne = value;
            }
        }

        /// <summary>
        /// 控制颜色的转换
        /// </summary>
        public UserControl4 userControl4
        {
            get { return _userControl4; }
            set
            {
                _userControl4 = value;
            }
        }
        /// <summary>
        /// 获取ground
        /// </summary>
        public int ground
        {
            get { return _ground; }
            set
            {
                _ground = value;
            }
        }
    }
}