Exemplo n.º 1
0
        /// <summary>
        /// 子控件事件回调处理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="ms"></param>
        protected virtual object ChileEventCallBack(Object sender, MouseState ms, XObjectData data = null)
        {
            switch (ms)
            {
            case MouseState.XUpdatePropertyData:
                XAribute bute = sender as XAribute;
                if (bute != null)
                {
                    //更新数据
                    bute.ProjectUseClassType = ProjectUseClassType;
                }
                break;

            case MouseState.XUpdateTreeViewData:
                PicTabPage page = sender as PicTabPage;
                if (page != null && (data.data as PicFunctionTabPage) != null)
                {
                    MessageOption option = XObject.MessageOptionTypeMapping(data.additional_Information.ToString());
                    if (option == MessageOption.Add)
                    {
                        ///更新函数
                        AddPicFunctionToPicData(page, data.data as PicFunctionTabPage);
                    }
                    else if (option == MessageOption.Update)
                    {
                        UpdatePicFunctionToPicData(page, data.data as PicFunctionTabPage);
                    }
                }
                break;
            }
            return(null);
        }