예제 #1
0
        private void RestoreComponent()
        {
            var last = components.Last;

            ViewModule.Restore(last.Value);
            components.RemoveLast();
        }
예제 #2
0
        /// <summary>
        /// 移除数据模型
        /// </summary>
        /// <param name="index"></param>
        /// <param name="rxModel"></param>
        private void OnRxModelRemove(int index, IYuLegoUIRxModel rxModel)
        {
            var last = components.Last;

            ViewModule.Restore(last.Value);
            components.RemoveLast();
            ReDrawAllComponents();
            UpdateMaxIndexOffset();
            UpadteContentSize();
        }