/// <summary>
            /// 设置窗口位置大小改变事件操作
            /// </summary>
            /// <param name="layout_name">面板名称</param>
            /// <param name="widget_name">控件名称</param>
            /// <param name="func">窗口位置大小改变代理</param>
            /// <param name="control">窗口位置大小改变事件控制方式</param>
            /// <returns>执行结果,若结果为Success,则表示操作成功;否则,表示操作失败</returns>
            public static ExecuteResult SetWindowChangeCoord(FString layout_name, FString widget_name, Event.SenderVoid func, EventControl control)
            {
                Window        window = null;
                ExecuteResult ret    = FindUI(layout_name, widget_name, out window);

                if (ExecuteResult.Success == ret)
                {
                    switch (control)
                    {
                    case EventControl.Add:
                    {
                        window.EventWindowChangeCoord += func;
                    }
                    break;

                    case EventControl.Remove:
                    {
                        window.EventWindowChangeCoord -= func;
                    }
                    break;
                    }
                }
                return(ret);
            }
            /// <summary>
            /// 设置鼠标单击按钮事件
            /// </summary>
            /// <param name="layout_name">界面名称</param>
            /// <param name="widget_name">控件名称</param>
            /// <param name="func">事件委托</param>
            /// <param name="control">控制方式</param>
            /// <returns></returns>
            public static ExecuteResult SetEventMouseButtonClick(FString layout_name, FString widget_name, Event.SenderVoid func, EventControl control)
            {
                Widget        widget = null;
                ExecuteResult ret    = FindWidget(layout_name, widget_name, out widget);

                if (ExecuteResult.Success == ret)
                {
                    switch (control)
                    {
                    case EventControl.Add:
                    {
                        widget.EventMouseButtonClick += func;
                    }
                    break;

                    case EventControl.Remove:
                    {
                        widget.EventMouseButtonClick -= func;
                    }
                    break;
                    }
                }
                return(ret);
            }