27 Star 283 Fork 130

cygsd / Chess

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
PropertyChangedClass.cs 822 Bytes
一键复制 编辑 原始数据 按行查看 历史
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Chess
{
/// <summary>
/// 属性变化事件测试模块
/// </summary>
internal class PropertyChangedClass
{
private static bool _name;
public static bool Name {
get { return _name; }
set {
_name = value;
OnPropertyRaised(nameof(Name));
} }
public string Description { get; set; }
public static event EventHandler<PropertyChangedEventArgs> PropertyChanged;
private static void OnPropertyRaised(string propertyname)
{
PropertyChanged?.Invoke(null, new PropertyChangedEventArgs(propertyname));
}
}
}
C#
1
https://gitee.com/cygsd/Chess.git
git@gitee.com:cygsd/Chess.git
cygsd
Chess
Chess
Chess

搜索帮助