| | |
| | | { |
| | | btnBack.MouseUpEventHandler = (sender, e) => { |
| | | backAction?.Invoke(); |
| | | if (baseView != null) |
| | | if (needClose) |
| | | { |
| | | baseView.RemoveFromParent(); |
| | | } |
| | | if (baseDialog != null) |
| | | { |
| | | baseDialog.Close(); |
| | | if (baseView != null) |
| | | { |
| | | baseView.RemoveFromParent(); |
| | | } |
| | | if (baseDialog != null) |
| | | { |
| | | baseDialog.Close(); |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 顶部按钮跳转功能配置页面 |
| | | /// </summary> |
| | | /// <param name="function"></param> |
| | | void LoadEvent_SkipFunctionSetting(Function function) |
| | | { |
| | | var infoView = new FunctionBaseInfoSetPage(function,backAction); |
| | | MainPage.BasePageView.AddChidren(infoView); |
| | | infoView.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 顶部添加按钮点击事件 |