1 Star 0 Fork 131

iambenben / Chess

forked from 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/iambenben/Chess.git
git@gitee.com:iambenben/Chess.git
iambenben
Chess
Chess
Chess

搜索帮助

53164aa7 5694891 3bd8fe86 5694891