Exemplo n.º 1
0
        /// <summary>
        /// 设置项目更新函数
        /// </summary>
        /// <typeparam name="T">ui模型</typeparam>
        /// <typeparam name="U">数据模型</typeparam>
        /// <param name="action">更新函数委托</param>
        public void SetItemUpdate <T, U>(Action <T, U> action) where T : TreeViewItem, new() where U : TreeViewNode, new()
        {
            var m = new TVMiddleware <T, U>();

            m.Invoke = action;
            creator  = m;
        }
Exemplo n.º 2
0
 /// <summary>
 /// 设置项目更新,用于热更新
 /// </summary>
 /// <param name="m"></param>
 public void SetItemUpdate(HotTVMiddleware m)
 {
     creator = m;
 }