duheng
2024-06-20 1d35b151e33d8919d578e3db321067b881eac1d5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
namespace HStation.WinFrmUI
{
    /// <summary>
    /// 页面同步事件集
    /// </summary>
    public class PageDataSync<T> where T : class, new()
    {
        public delegate void PageDataSyncHandler(DocumentPage page, ePageDataOperation operation, T t);
 
        public static event PageDataSyncHandler DataOperationEvent;
 
        public static void Commit(DocumentPage page, ePageDataOperation operation, T t)
        {
            DataOperationEvent?.Invoke(page, operation, t);
        }
    }
}