跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

UINotifyPropertyChanged.cs

26 行 · 672 B历史下载
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Linq;
5using System.Runtime.CompilerServices;
6using System.Text;
7using System.Threading.Tasks;
8
9namespace UI.Models
10{
11 public class UINotifyPropertyChanged : INotifyPropertyChanged
12 {
13 public event PropertyChangedEventHandler PropertyChanged;
14
15 public void OnPropertyChanged([CallerMemberName] string propertyName = "")
16 {
17
18 PropertyChangedEventHandler handler = PropertyChanged;
19 if (handler != null)
20 {
21 handler.Invoke(this, new PropertyChangedEventArgs(propertyName));
22 }
23
24 }
25 }
26}